woong's

Android TextView ... 처리 본문

Develop/Android

Android TextView ... 처리

dlsdnd345 2016. 2. 14. 16:14
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

Android TextView ... 처리 



Android TextView ... 처리를 찾아보니 클래스를 넣으라는둥 하는 글이 많았다. 

Android 에서 기분으로 제공해주는 기능에 있었습니다 .


1
2
3
4
5
6
7
8
9
10
11
12
                <TextView
                    android:id="@+id/capture_title"
                    android:singleLine="true"
                    android:ellipsize="end"
                    android:layout_width="230dp"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_centerHorizontal="true"
                    android:layout_marginBottom="5dp"
                    android:textColor="@color/text_white"
                    android:textSize="15sp"
                    android:textStyle="bold" />



여기서의 핵심 코드는 


 android:singleLine="true"
 android:ellipsize="end"


이 두줄의 코드입니다 .


android:layout_width="230dp"


의 길이 많큼 넘어가면 ... 으로 나오는 것을 볼수 있습니다 .

제가 사용한 화면이네요 ^^



'Develop > Android' 카테고리의 다른 글

Android widget 사용하기  (0) 2016.02.14
Android CheckBok 사용하기  (0) 2016.02.14
안드로이드 레이아웃 최적화  (1) 2016.02.14
android back key & 뒤로가기 두번 종료  (0) 2016.02.14
Image 그림자 효과 주기  (0) 2016.02.14
Comments