res/drawable/avatar_status.xml
changeset 947 3c5724d30887
parent 946 7caab0161cf9
child 948 1b906337327d
equal deleted inserted replaced
946:7caab0161cf9 947:3c5724d30887
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!--
       
     3     Layer Level list drawable for Avatar and status icon
       
     4     See src/com/beem/project/beem/utils/Status.java
       
     5     for level values to change the status.
       
     6     The status icon must be resized using method
       
     7     LayerDrawable.setLayerInset();
       
     8     The drawable with id @id/avatar must be replace by the real
       
     9     avatar using the method LayerDrawable.setDrawableByLayerId()
       
    10 -->
       
    11 <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
       
    12     <item android:id="@+id/avatar">
       
    13 	<shape/>
       
    14     </item>
       
    15     <item android:drawable="@drawable/status_icon" />
       
    16 </layer-list>