I have some buttons orientated in a vertical LinearLayout with the default menuitem_background
applied to them (Which gives them a transparent background at default state and a highlighting color on click/press).
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
<Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/bt1" android:text="Button 1"></Button>
<Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/bt2" android:text="Button 2"></Button>
<Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/bt3" android:text="Button 3"></Button>
<Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/bt4" android:text="Button 4"></Button>
</LinearLayout>
I want each of the buttons to have a border at the bottom. How do I achieve this?
This is the style applied to the buttons:
<style name="CKButton" parent="android:style/Widget.Button">
<item name="android:textSize">21sp</item>
<item name="android:layout_margin">0dip</item>
<item name="android:background">@android:drawable/menuitem_background</item>
<item name="android:textColor">@color/button_text_normal</item>
<item name="android:padding">10dip</item>
<item name="android:gravity">left|center_horizontal</item>
</style>