1. 얇게
<View
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="2dp"
android:background="@drawable/drop_shadow" >
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="@android:color/transparent"
android:endColor="#44000000"
android:angle="90"/>
</shape>
2. 두껍게
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="bottom">
<shape>
<size android:height="5dp" />
<solid android:color="#f5f5f5" />
<gradient
android:angle="90"
android:endColor="#23000000"
android:startColor="@android:color/transparent" />
</shape>
</item>
</layer-list>
'Android' 카테고리의 다른 글
RadioButton Button Selector (drawableEnd Not Working) (0) | 2020.10.10 |
---|---|
Data Binding 사용시 tools가 동작하지 않는 이슈 (0) | 2020.07.04 |
BottomNavigationView 이벤트 연결 없이 만들기 (Google Sample) (0) | 2020.04.28 |
CleanArchitecture 링크 모음 (0) | 2020.04.28 |
Wifi, LTE 검사 (0) | 2020.04.26 |