1.
android:maxHeight="100dp" > 높이 고정
android:maxWidth="200dp" > 가로 고정
android:adjustViewBouns="true" > 이미지 본연의 크기를 고집함
android:scaleType="fitXY" > 이미지 크기를 꽉 맞춤
2.
android:tint="#80ff0000" > 이미지 위에 색 입히기
3.
android:layout_weight="3" > 부모에게 10분의 3만 쓰겠다고 선언
4.
android:layout_below="@+id/text_view02" > 텍스트뷰02 아이디를 가진 객체 밑으로 나열됨
5.
android:textStyle="bold" > 텍스트 굵게
android:textColor="@color/kakao" > 텍스트 컬러 입히기
6.
style="?android:attr/borderlessButtonStyle" > 버튼 테두리 없애기
7.
app:passwordToggleEnabled="true" > 비밀번호 가시성 추가, TextInputLayout 에 추가
app:passwordToggleTint="@color/color_main" > 비밀번호 가시성 아이콘에 컬러 추가
8.
android:backgroundTint="@android:color/color_main" > EditText 클릭시 보여지는 Line 컬러 변경
android:drawablePadding="5dp" > EditText 에 drawable 추가 후 텍스트과의 간격 설정
9.
android:autoLink="all" > 전화걸거나..그런 링크들 활성화
==================== Programmatically
1.
textView.setTextColor(getResources().getColor(R.color.color_main)) > 텍스트뷰에 글자 색 입히기
textView.setTypeface(Typeface.DEFAULT_BOLD) > 텍스트뷰에 글자 두껍게 하기
textView.setGravity(Gravity.CENTER) > 텍스트뷰 정중앙으로 띄우기
textViw.setTextSize(TypedValue.COMPLEX_UNIT_PT, 7) > 텍스트 사이즈 7pt로 설정
'MOBILE > Android' 카테고리의 다른 글
[Android] 안드로이드 로그인/로그아웃 등 쿠키와 세션 유지 (0) | 2018.08.01 |
---|---|
안드로이드 ToolBar 사용하는 방법 (0) | 2018.08.01 |
안드로이드에 상태유지(쿠키,세션) API가 없는 이유 (0) | 2018.06.22 |
Android Thread Policy (0) | 2018.06.05 |
Event Driven Programming (0) | 2018.05.31 |
댓글