i need set size item in layer-list. using windowbackground in launch activity. wrote xml file , android studio displays correctly. in application logo full screen. how make it?
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <gradient android:endcolor="#000004" android:gradientradius="1000" android:startcolor="#1f3371" android:type="radial" > </gradient> </shape> </item> <item> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/texture_5" android:tilemode="repeat" /> </item> <item android:drawable="@drawable/logo" android:height="100dp" android:width="77dp" android:gravity="center" > </item> </layer-list>
starting api 23, possible set width , height right within "item" tag:
<item android:drawable="@drawable/logo" android:width="..." android:height="..." />
Comments
Post a Comment