From 3a7a6638246aac6ec3b6c78421086fe25c70be11 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Wed, 18 Oct 2017 10:12:53 +0200 Subject: [PATCH] change background color of detailed status for better legibility, especially with light theme --- .../main/res/layout/item_status_detailed.xml | 189 +++++++++--------- 1 file changed, 94 insertions(+), 95 deletions(-) diff --git a/app/src/main/res/layout/item_status_detailed.xml b/app/src/main/res/layout/item_status_detailed.xml index e2f2110e..68ad7476 100644 --- a/app/src/main/res/layout/item_status_detailed.xml +++ b/app/src/main/res/layout/item_status_detailed.xml @@ -1,44 +1,43 @@ + android:paddingRight="16dp"> + android:textStyle="normal|bold" /> + android:textColor="?android:textColorSecondary" /> + android:layout_toEndOf="@+id/status_avatar" + android:layout_toRightOf="@+id/status_avatar" + android:focusable="true" + android:visibility="gone" + app:paddingHorizontal="4dp"> + android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium" + android:textColor="?android:textColorPrimary" /> + android:textOff="@string/status_content_warning_show_more" + android:textOn="@string/status_content_warning_show_less" /> @@ -92,15 +91,15 @@ android:id="@+id/status_content" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textColor="?android:textColorPrimary" - android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium" - android:layout_marginBottom="4dp" - android:layout_toRightOf="@+id/status_avatar" - android:layout_toEndOf="@+id/status_avatar" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_below="@+id/status_content_warning_bar" - android:focusable="true" /> + android:layout_marginBottom="4dp" + android:layout_toEndOf="@+id/status_avatar" + android:layout_toRightOf="@+id/status_avatar" + android:focusable="true" + android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium" + android:textColor="?android:textColorPrimary" /> + android:layout_height="wrap_content" + android:orientation="vertical"> + android:orientation="horizontal"> + android:layout_weight="1" + android:contentDescription="@string/action_view_media" + android:scaleType="centerCrop" /> + android:layout_weight="1" + android:contentDescription="@string/action_view_media" + android:scaleType="centerCrop" /> + android:orientation="horizontal"> + android:layout_weight="1" + android:contentDescription="@string/action_view_media" + android:scaleType="centerCrop" /> + android:contentDescription="@string/action_view_media" + android:scaleType="centerCrop" /> @@ -180,25 +179,25 @@ android:layout_height="match_parent"> + android:visibility="gone" + app:srcCompat="@drawable/ic_play_48dp" /> + android:visibility="gone" + app:srcCompat="@drawable/ic_remove_red_eye_black_24dp" /> + android:includeFontPadding="false" + android:visibility="gone" /> @@ -244,10 +243,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/status_media_preview_container" + android:layout_marginBottom="4dp" + android:layout_marginTop="8dp" android:layout_toEndOf="@id/status_avatar" android:layout_toRightOf="@id/status_avatar" - android:layout_marginTop="8dp" - android:layout_marginBottom="4dp" android:orientation="horizontal"> + android:layout_marginLeft="16dp" + android:layout_marginStart="16dp" /> + app:srcCompat="@drawable/ic_reply_24dp" /> + android:padding="4dp" + app:sparkbutton_activeImage="@drawable/reblog_active" + app:sparkbutton_iconSize="28dp" + app:sparkbutton_inActiveImage="?attr/status_reblog_inactive_drawable" + app:sparkbutton_primaryColor="@color/status_reblog_button_marked_dark" + app:sparkbutton_secondaryColor="@color/status_reblog_button_marked_light" /> + android:padding="4dp" + app:sparkbutton_activeImage="?attr/status_favourite_active_drawable" + app:sparkbutton_iconSize="28dp" + app:sparkbutton_inActiveImage="?attr/status_favourite_inactive_drawable" + app:sparkbutton_primaryColor="@color/status_favourite_button_marked_dark" + app:sparkbutton_secondaryColor="@color/status_favourite_button_marked_light" /> + app:srcCompat="@drawable/ic_more_horiz_24dp" />