From e8518de639d4c9b5d2cfd103edcd7cae45110a07 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 17 May 2017 14:57:24 +0800 Subject: [PATCH] simplified compose and retweet/fav dialog layout --- .../src/main/res/layout/activity_compose.xml | 165 +++++++++--------- .../layout/dialog_status_favorite_confirm.xml | 13 +- .../layout/dialog_status_quote_retweet.xml | 24 +-- 3 files changed, 99 insertions(+), 103 deletions(-) diff --git a/twidere/src/main/res/layout/activity_compose.xml b/twidere/src/main/res/layout/activity_compose.xml index f3cb9ed89..e1012faf7 100644 --- a/twidere/src/main/res/layout/activity_compose.xml +++ b/twidere/src/main/res/layout/activity_compose.xml @@ -26,116 +26,109 @@ android:minWidth="@dimen/compose_min_width" android:orientation="vertical"> - + android:layout_weight="1" + android:maxHeight="240dp" + tools:maxHeight="@null"> - + android:orientation="vertical"> - + android:background="?android:panelColorBackground" + android:ellipsize="end" + android:maxLines="1" + android:padding="@dimen/element_spacing_normal" + tools:text="In reply to name: A quick brown fox jumps over the lazy dog"/> + + + + + + + android:textAppearance="?android:textAppearanceSmall" + android:visibility="gone"/> - + + + android:drawableLeft="@drawable/ic_action_location" + android:drawableStart="@drawable/ic_action_location" + android:gravity="center_vertical" + android:maxLines="1" + android:textColor="?android:textColorSecondary" + app:iabColor="?android:textColorSecondary" + app:iabIconHeight="20dp" + app:iabIconWidth="20dp" + tools:text="11.4, 51.4"/> - + - - - - - - - - - - - - - - - + + + + android:layout_height="match_parent"> + android:layout_height="wrap_content" + android:paddingBottom="@dimen/element_spacing_normal" + android:paddingLeft="@dimen/element_spacing_large" + android:paddingRight="@dimen/element_spacing_large" + android:paddingTop="@dimen/element_spacing_normal"> diff --git a/twidere/src/main/res/layout/dialog_status_quote_retweet.xml b/twidere/src/main/res/layout/dialog_status_quote_retweet.xml index 9bac33019..1249243b5 100644 --- a/twidere/src/main/res/layout/dialog_status_quote_retweet.xml +++ b/twidere/src/main/res/layout/dialog_status_quote_retweet.xml @@ -20,21 +20,20 @@ --> + android:layout_height="match_parent"> + android:orientation="vertical" + android:paddingBottom="@dimen/element_spacing_normal" + android:paddingLeft="@dimen/element_spacing_large" + android:paddingRight="@dimen/element_spacing_large" + android:paddingTop="@dimen/element_spacing_normal"> + android:minHeight="@dimen/element_size_mlarge" + android:visibility="gone">