I would like to create a background for my layouts.
What I used still now is:
<?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="@android:color/darker_gray" />
</shape>
</item>
<item android:bottom="5dp">
<shape android:shape="rectangle">
<solid android:color="@android:color/black" />
</shape>
</item>
</layer-list>
It works nice untill the activity background were black... But now I would change my activity background. So not I would use a transparent background and draw a thin(5dp) darker_gray line at button.
Would somebody help me to create it by using items and shapes ... like this example shows?
I found a good solution:
Try this this will display a thin black line at button of a LinearLayout having White background.
create style and apply it in android manifest file
in manifest: