I got this drawable, that's just making a little nice border at the bottom.
I made it this way to get some more shiny than just a rectangle border. 

The code works for API 24.
On API 23 it doesn't show up.
And below that, the height doesn't work, and it just fills everything.


<?xml version="1.0" encoding="utf-8"?><layer-list 
xmlns:android="http://schemas.android.com/apk/res/android";>
    <item
        android:height="3dp"
        android:left="5dp"
        android:right="5dp"
        android:gravity="bottom">
        <shape
            android:shape="oval">
            <gradient
                android:angle="90"
                android:startColor="#000000"
                android:centerColor="@android:color/transparent"/>
        </shape>
    </item></layer-list>

<http://stackoverflow.com/questions/39121680/android-layer-list-item-height-not-working#>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/65130d2a-fd42-4193-b208-8997779fc161%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to