Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- union
- react native
- docker
- recyclerview
- ReactNative
- enum
- 생명주기
- lifecycle
- Interface
- Service
- collection
- Filter
- Kotlin
- LiveData
- function
- MINUS
- Generic
- ConstraintLayout
- list
- mongoose
- AWS
- CLASS
- map
- elementAt
- Foreign Key
- animation
- docker-compose
- class component
- vuex
- Swift
Archives
- Today
- Total
개발 일기
TextView ? 본문
안드로이드 TextView는 화면에서 Text를 표시할 때 주로 사용하는 위젯입니다.
Button , EditText 부모 클래스이기도 하면서 View에 상속을 받습니다.
Xml:)
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/app_name"
/>
TextView 주로 사용하는 속성 값 :)
android:textColor="@color/white" | 텍스트에 색깔을 지정합니다. |
android:textSize="16sp" | 텍스트에 크기를 지정합니다. |
android:textStyle | 텍스트에 Style 지정합니다. |
android:maxLines="1" | 텍스트에 최대 줄수를 제한합니다. |
android:ellipsize="end" | "start" , "middle" , "End" 텍스트 앞쪽 , 중앙 , 마지막을 생략합니다. |
android:autoLink="all" | "email" , "map" , "phone" , "web" 아래에 해당하는 앱을 open |
app:autoSizeTextType="uniform" | 크기에 맞게 텍스트뷰에 글자 크기를 자동으로 늘려줍니다. 이 속성은 높이가 항상 고정된 값 이어야 합니다. |
android:includeFontPadding="false" | TextView에 기본으로 들어가있던 패딩값을 제거합니다. |
android:text="" | TextView에 텍스트를 설정합니다. |
'Client > 안드로이드' 카테고리의 다른 글
View ? (0) | 2020.03.11 |
---|---|
Edit Text ? (0) | 2020.03.10 |
RecyclerView 이란? (0) | 2020.03.09 |
android key Hash 구하기 (0) | 2020.03.07 |
Android Realm 사용방법 (0) | 2020.03.06 |
Comments