Android Background With A Thin Line
I would like to create a background for my layouts. What I used still now is: Copy
Solution 2:
create style and apply it in android manifest file
<stylename="Transparent"parent="android:Theme.Light"><itemname="android:windowIsTranslucent">true</item><itemname="android:windowBackground">@android:color/transparent</item><itemname="android:windowContentOverlay">@null</item><itemname="android:windowNoTitle">true</item><itemname="android:windowIsFloating">true</item><itemname="android:backgroundDimEnabled">false</item></style><colorname="transparent">#00000000</color>
in manifest:
android:theme="@style/Transparent"
Solution 3:
Try this this will display a thin black line at button of a LinearLayout having White background.
<?xml version="1.0" encoding="utf-8"?><layer-listxmlns:android="http://schemas.android.com/apk/res/android"><item><shapeandroid:shape="rectangle" ><paddingandroid:bottom="1dp"/><solidandroid:color="#ff333333"/></shape></item><item><shapeandroid:shape="rectangle" ><solidandroid:color="#ffffffff"/></shape></item></layer-list>
Post a Comment for "Android Background With A Thin Line"