Skip to content

Commit

Permalink
[feat] Added spinner's backgrounds supporting light and dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
seyfullahpolatteknasyon committed Jun 19, 2019
1 parent baa9530 commit aa30e6f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions desk360/src/main/res/drawable/dark_theme_spinner_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape>
<stroke android:width="1dp" android:color="@android:color/black"/>
<corners android:radius="5dp"/>
</shape>
</item>
<item android:end="12dp">
<bitmap android:gravity="right|center" android:src="@drawable/ic_add_dark_theme_icon"/>
</item>
</layer-list>
</item>

</selector>
20 changes: 20 additions & 0 deletions desk360/src/main/res/drawable/light_theme_spinner_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape>

<stroke android:width="1dp" android:color="@color/dark_theme_hint_color" />

<corners android:radius="5dp" />
</shape>
</item>
<item android:end="12dp">
<bitmap android:gravity="right|center" android:src="@drawable/ic_add_light_theme_icon"
/>
</item>
</layer-list>
</item>

</selector>

0 comments on commit aa30e6f

Please sign in to comment.