mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 00:25:10 -04:00
d5c185545b
Make the "done" entry in batch buttons only show up in touch mode
58 lines
2.1 KiB
XML
58 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent" >
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/batch_button_area"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:visibility="gone"
|
|
android:padding="2sp"
|
|
android:background="#CCCCCC"
|
|
>
|
|
<Button
|
|
android:id="@+id/batch_read_button"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/message_list_mark_read_action"
|
|
/>
|
|
<Button
|
|
android:id="@+id/batch_delete_button"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/message_list_delete_action"
|
|
/>
|
|
<Button
|
|
android:id="@+id/batch_flag_button"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/message_list_flag_action"
|
|
/>
|
|
<Button
|
|
android:id="@+id/batch_done_button"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/done_action"
|
|
/>
|
|
</LinearLayout>
|
|
<ListView
|
|
android:id="@+id/message_list"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_above="@id/batch_button_area"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
/>
|
|
</RelativeLayout>
|