Skip to content

Instantly share code, notes, and snippets.

@gvr23
Created January 23, 2018 22:56
Show Gist options
  • Save gvr23/af0993059662f532937ad10c07509b31 to your computer and use it in GitHub Desktop.
Save gvr23/af0993059662f532937ad10c07509b31 to your computer and use it in GitHub Desktop.
change the background and the image from wtihin a spinner
ANDROID
===================================================================================================================================
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:top="8dp" android:bottom="8dp">
<shape>
<solid android:color="@android:color/white" />
<stroke
android:width="0.1dp"
android:color="@color/color_primary" />
<padding
android:top="16dp"
android:bottom="16dp"
android:left="8dp"
android:right="16dp"/>
</shape>
</item>
<item>
<bitmap android:gravity="center|right"
android:src="@drawable/drop_down_red_arrow"/>
</item>
</layer-list>
==================================================================================================================================
apply it ina background attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment