четверг, 21 августа 2014 г.

XML shapes in Android L

This would work in pre-L android:


    android:shape="rectangle" >

            android:angle="270"
        android:color="@color/orange" />

            android:bottomLeftRadius="5dp"
        android:bottomRightRadius="5dp"
        android:topLeftRadius="5dp"
        android:topRightRadius="5dp" />




But in Android L you would see... nothing. To fix it you should always use selectors. You'd get the result this way:




   
           

           
       

Комментариев нет:

Отправить комментарий