mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
591a3af6dc
always-available select action. For the moment, this means that widgets_on_left does nothing at all. based on feedback, I may kill the preference and multi-mode behaviour entirely in favor of "show stars?" (and possibly "show stars on left" Stars, "checkboxes" and color bars updated to actually fit in wide mode.
85 lines
3.2 KiB
XML
85 lines
3.2 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="38dip"
|
|
android:paddingRight="1dip"
|
|
android:paddingTop="2dip"
|
|
android:background="#cccccc"
|
|
>
|
|
<RelativeLayout
|
|
android:id="@+id/chip"
|
|
android:background="@drawable/appointment_indicator_leftside_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_marginRight="2dip"
|
|
android:layout_height="fill_parent"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentLeft="true"
|
|
>
|
|
<CheckBox
|
|
android:id="@+id/selected_checkbox"
|
|
android:layout_width="24dip"
|
|
android:layout_height="wrap_content"
|
|
android:button="@drawable/checkbox"
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:focusable="false"
|
|
android:visibility="gone"
|
|
/>
|
|
</RelativeLayout>
|
|
<CheckBox
|
|
android:id="@+id/flagged"
|
|
android:focusable="false"
|
|
android:button="@drawable/star"
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_height="20dip"
|
|
android:layout_width="20dip"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/subject"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="10dip"
|
|
android:layout_toLeftOf="@id/flagged"
|
|
android:layout_toRightOf="@+id/chip"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:layout_marginRight="1dip" />
|
|
<TextView
|
|
android:id="@+id/date"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:paddingRight="5dip"
|
|
android:paddingLeft="5dip"
|
|
android:singleLine="true"
|
|
android:gravity="right|bottom"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@id/flagged"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@android:color/transparent"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/from"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:paddingLeft="12dip"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_toLeftOf="@id/date"
|
|
android:layout_toRightOf="@id/chip"
|
|
/>
|
|
|
|
</RelativeLayout>
|