mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-10 11:35:11 -05:00
d6a9b4e4d4
Fixes more Lint warnings
184 lines
7.4 KiB
XML
184 lines
7.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="center_vertical"
|
|
>
|
|
|
|
<View
|
|
android:id="@+id/chip"
|
|
android:adjustViewBounds="false"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="8dip"
|
|
android:layout_marginRight="4dp"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/selected_checkbox_wrapper"
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center"
|
|
android:visibility="visible"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:baselineAligned="false">
|
|
|
|
<CheckBox
|
|
android:id="@+id/selected_checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:focusable="false"
|
|
android:clickable="false"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="0dp"
|
|
android:visibility="visible"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<QuickContactBadge
|
|
android:id="@+id/contact_badge"
|
|
android:layout_marginRight="8dip"
|
|
android:layout_marginTop="4dip"
|
|
android:layout_marginBottom="3dip"
|
|
android:layout_height="40dip"
|
|
android:layout_width="40dip"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="4dp"
|
|
android:src="@drawable/ic_contact_picture"
|
|
style="?android:attr/quickContactBadgeStyleWindowLarge"
|
|
android:background="@android:color/transparent"/>
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/list_item_inner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="5dip"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"
|
|
android:layout_gravity="center_vertical"
|
|
android:paddingBottom="6dp">
|
|
|
|
<TextView
|
|
android:id="@+id/preview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_toLeftOf="@+id/flagged_bottom_right"
|
|
android:layout_marginLeft="1dip"
|
|
android:layout_marginRight="3dip"
|
|
android:bufferType="spannable"
|
|
android:layout_below="@+id/subject_wrapper"
|
|
android:singleLine="false"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:longClickable="false"
|
|
android:layout_alignWithParentIfMissing="false"
|
|
android:gravity="top"
|
|
android:layout_alignParentBottom="false"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/subject_wrapper"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="false"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_alignParentBottom="false"
|
|
android:layout_alignParentLeft="false"
|
|
android:layout_toLeftOf="@+id/date">
|
|
|
|
<TextView
|
|
android:id="@+id/sender_compact"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.3"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:layout_marginBottom="1dip"
|
|
android:layout_marginLeft="1dip"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/subject"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="0.7"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="1dip"
|
|
android:layout_marginLeft="1dip"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/thread_count"
|
|
android:textColor="?attr/messageListThreadCountForegroundColor"
|
|
android:background="?attr/messageListThreadCountBackground"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="3dip"
|
|
android:layout_marginRight="4dip"
|
|
android:paddingRight="4dip"
|
|
android:paddingBottom="1dip"
|
|
android:paddingLeft="4dip"
|
|
android:focusable="false"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
<CheckBox
|
|
android:id="@+id/flagged_center_right"
|
|
style="?android:attr/starStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:paddingTop="3dip"
|
|
android:paddingLeft="2dip"
|
|
android:paddingRight="4dip"
|
|
android:focusable="false"
|
|
android:visibility="gone"
|
|
/>
|
|
|
|
<TextView
|
|
android:id="@+id/date"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@+id/subject_wrapper"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toLeftOf="@+id/flagged_center_right"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="8dip"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorSecondary"/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/flagged_bottom_right"
|
|
style="?android:attr/starStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
android:layout_below="@+id/date"
|
|
android:layout_alignParentRight="true"
|
|
android:paddingTop="5dip"
|
|
android:paddingLeft="2dip"
|
|
android:paddingRight="4dip"
|
|
android:focusable="false"
|
|
android:visibility="visible"
|
|
android:gravity="center_vertical"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
</LinearLayout>
|