android - How to set a background using an image and color to be used in theme style? -
so i've tried using list-layer(window_background.xml) , theme:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <solid android:color="@color/background_grey" /> </shape> </item> <item android:top="60dp"> <bitmap android:src="@drawable/logo_home_white_agora" android:gravity="center"/> </item>
theme:
<style name="theme.customtheme" parent="android:theme"> <item name="android:windowbackground">@drawable/window_background</item> <item name="android:windowtitlebackgroundstyle">@style/customwindowtitlebackground</item>
the problem using list-layer doesn't seem redraw background on configuration changes use specific size image. there way this?
Comments
Post a Comment