티스토리 뷰
Drawable Resource File 추가
res/drawable/ic_layer_list.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="20dp"
android:height="20dp"
android:drawable="@drawable/ic_person" />
<item
android:width="20dp"
android:height="20dp"
android:drawable="@drawable/ic_setting" />
</layer-list>
ic_setting 아이템이 나중에 선언됐으므로 ic_person 상위에 위치
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:background="#BBBBFF"
tools:context=".MainActivity">
<ImageView
android:id="@+id/ivProfile"
android:layout_width="200dp"
android:layout_height="200dp"
android:src="@drawable/ic_layer_list"/>
</LinearLayout>
'Android > XML' 카테고리의 다른 글
networkSecurityConfig (0) | 2020.08.14 |
---|---|
<EditText> 꾸미기 (0) | 2020.08.04 |
<ImageButton> 꾸미기 (0) | 2020.08.04 |
<TextView> 꾸미기 (0) | 2020.08.04 |
<selector> + ViewPager2 + TabLayout (0) | 2020.08.04 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Livedata
- Design Pattern
- JSONArray
- XML
- coroutine
- Architecture Pattern
- JSONObject
- Vue.js #Vue.js + javascript
- CoordinatorLayout
- ArrayList
- Kotlin
- Android
- 안드로이드 #코틀린 #Android #Kotlin
- 안드로이드
- ViewPager2
- 혀가 길지 않은 개발자
- James Kim
- DataBinding
- Intent
- fragment
- 자바
- handler
- View
- 코틀린
- recyclerview
- java
- TabLayout
- ViewModel
- activity
- MVVM
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함