Arrange the size of a Bitmap in a layer-list

0

I would like to be able to set a size for my image by having it fit into my reduced size menu.

Expectancy:

<?xmlversion="1.0" encoding="utf-8"?>
    <layer-list
    <item >
        <shape android:shape="rectangle"  >
            <solid android:color="@color/background_menu_lateral" />
        </shape>
    </item>
    <item>
        <bitmap
            android:tint="@color/branco"
            android:gravity="center|end"
            android:src="@drawable/ic_seta_direita">
        </bitmap>
    </item>
    <item android:top="-2dp" android:right="-2dp" android:left="-2dp">
    <shape>
        <solid android:color="@android:color/transparent" />
            <stroke
                android:width="1dp"
                android:color="#393939"
                />
        </shape>
    </item>
</layer-list>
    
asked by anonymous 18.10.2018 / 21:02

0 answers