xml - Android Overlaying images in layer-list -


i trying create custom drawable includes 9-patch background image (named custom_bg below) , regular png image (accordion_up). latter should not scaled.

i tried several variations of along lines of:

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >     <item android:drawable="@drawable/custom_bg"/>     <item         android:layout_width="10dp"         android:layout_height="10dp"         android:drawable="@drawable/accordion_up"         android:gravity="right" />  </layer-list> 

tried different values layout_width/layout_height , width/height accordion image stretched fill entire view. float @ top right of view instead, scaled match dpi of device, not expanded fit view. how can that?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -