Tweak message list widget layout
This commit is contained in:
parent
27ec98b1d0
commit
50c382c779
3 changed files with 31 additions and 37 deletions
|
@ -1,56 +1,46 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/top_controls"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/light_grey"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/widget_padding">
|
||||
android:background="@color/message_list_widget_header_background"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/folder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/mail_address"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_below="@+id/folder"
|
||||
android:textSize="15sp" />
|
||||
android:layout_weight="1"
|
||||
android:paddingBottom="12dp"
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:paddingTop="12dp"
|
||||
android:textSize="20sp"
|
||||
android:textColor="@color/message_list_widget_header_text"
|
||||
tools:text="Unified Inbox" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/new_message"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/mail_address"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:contentDescription="@string/compose_action"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_action_compose_dark" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ListView android:id="@+id/listView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="@color/light_grey"
|
||||
android:dividerHeight="1dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView android:id="@+id/listView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:divider="@color/message_list_widget_divider"
|
||||
android:dividerHeight="0.5dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="message_list_item_footer_background">#eeeeee</color>
|
||||
<color name="message_list_widget_header_background">#737373</color>
|
||||
<color name="message_list_widget_header_text">#e4e4e4</color>
|
||||
<color name="message_list_widget_divider">#e5e5e5</color>
|
||||
<color name="light_black">#444444</color>
|
||||
<color name="light_grey">#737373</color>
|
||||
</resources>
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
android:initialLayout="@layout/mail_list_view_widget_layout"
|
||||
android:minHeight="180dp"
|
||||
android:minWidth="250dp"
|
||||
android:minResizeWidth="180dp"
|
||||
android:minResizeHeight="110dp"
|
||||
android:previewImage="@drawable/mail_list_widget_icon"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="86400000"
|
||||
|
|
Loading…
Reference in a new issue