Receiving Error When Inflating Spinner Layout
So I am trying to set a custom image for my spinner drop down. I have went to a few stackoverflow questions and they all seem to have the same solution to get it done. For some rea
Solution 1:
I changed the ic_spinner_dropdown drawable and that fixed the problem. from:
`
<?xml version="1.0" encoding="utf-8"?><layer-listxmlns:android="http://schemas.android.com/apk/res/android"><item><shapeandroid:shape="rectangle"><solidandroid:color="#FFFFFF" /><cornersandroid:radius="2.5dp" /></shape></item><itemandroid:right="64dp"><bitmapandroid:gravity="right|center_vertical"android:src="@drawable/more_vert" /></item></layer-list>
to
<?xml version="1.0" encoding="utf-8"?><layer-listxmlns:android="http://schemas.android.com/apk/res/android"><itemandroid:right="64dp"android:drawable="@drawable/more_vert"android:gravity="left|center_vertical"></item></layer-list>
In other words delete the bitmap code and and set the drawable source in the item tag and use gravity to set the position of drop down image
Post a Comment for "Receiving Error When Inflating Spinner Layout"