android - how to change relative layout border color? -
how change relative layout border color?? code below want show border color black show relative layout black. want show relative layout white color borde black do??
<relativelayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/border5"> <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <solid android:color="#000000" /> </shape> </item> <item android:left="1dp" android:top="1dp" android:bottom="2dp" > <shape android:shape="rectangle"> </shape> </item> </layer-list>
this how give mine white background , orange border
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <solid android:color="@drawable/white" /> <stroke android:width="3px" android:color="@drawable/orange" /> </shape> if want border can keep in same <shape> , use <solid...> background color (if want give one) , <stroke...> border.
you can how have change <solid> background color want , add <stroke> black
Comments
Post a Comment