improve spoiler warning button & detailed status text size

This commit is contained in:
Conny Duck 2018-04-09 16:42:18 +02:00
parent 289954e7d4
commit 54d45585e6
3 changed files with 15 additions and 18 deletions

View file

@ -94,29 +94,28 @@
android:layout_below="@id/status_display_name" android:layout_below="@id/status_display_name"
android:lineSpacingMultiplier="1.1" android:lineSpacingMultiplier="1.1"
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
android:visibility="gone" android:textSize="?attr/status_text_medium"
android:textSize="?attr/status_text_medium" /> android:visibility="gone" />
<ToggleButton <ToggleButton
android:id="@+id/status_content_warning_button" android:id="@+id/status_content_warning_button"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/status_content_warning_description" android:layout_below="@+id/status_content_warning_description"
android:layout_centerHorizontal="true" android:layout_marginBottom="4dp"
android:layout_marginTop="4dp"
android:background="?attr/content_warning_button" android:background="?attr/content_warning_button"
android:minHeight="0dp" android:minHeight="0dp"
android:minWidth="150dp" android:minWidth="150dp"
android:paddingBottom="6dp" android:paddingBottom="4dp"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:paddingTop="6dp" android:paddingTop="4dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:textAllCaps="true" android:textAllCaps="true"
android:textOff="@string/status_content_warning_show_more" android:textOff="@string/status_content_warning_show_more"
android:textOn="@string/status_content_warning_show_less" android:textOn="@string/status_content_warning_show_less"
android:visibility="gone" android:textSize="?attr/status_text_medium"
android:textSize="?attr/status_text_medium" /> android:visibility="gone" />
</RelativeLayout> </RelativeLayout>
<TextView <TextView

View file

@ -60,7 +60,7 @@
android:lineSpacingMultiplier="1.1" android:lineSpacingMultiplier="1.1"
android:textColor="?android:textColorPrimary" android:textColor="?android:textColorPrimary"
android:textIsSelectable="true" android:textIsSelectable="true"
android:textSize="?attr/status_text_medium" android:textSize="?attr/status_text_large"
tools:text="CW this is a long long long long long long long long content warning" /> tools:text="CW this is a long long long long long long long long content warning" />
<ToggleButton <ToggleButton
@ -68,20 +68,19 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/status_content_warning_description" android:layout_below="@+id/status_content_warning_description"
android:layout_centerHorizontal="true"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:background="?attr/content_warning_button" android:background="?attr/content_warning_button"
android:minHeight="0dp" android:minHeight="0dp"
android:minWidth="150dp" android:minWidth="150dp"
android:paddingBottom="6dp" android:paddingBottom="4dp"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:paddingTop="6dp" android:paddingTop="4dp"
android:textAllCaps="true" android:textAllCaps="true"
android:textOff="@string/status_content_warning_show_more" android:textOff="@string/status_content_warning_show_more"
android:textOn="@string/status_content_warning_show_less" android:textOn="@string/status_content_warning_show_less"
android:textSize="?attr/status_text_medium" /> android:textSize="?attr/status_text_large" />
<TextView <TextView
android:id="@+id/status_content" android:id="@+id/status_content"

View file

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!--This applies only to favourite and rebnotificationsEnabledions.--> <?xml version="1.0" encoding="utf-8"?><!--This applies only to favourite and rebnotificationsEnabledions.-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/notification_container" android:id="@+id/notification_container"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -89,14 +88,14 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/notification_content_warning_description" android:layout_below="@+id/notification_content_warning_description"
android:layout_centerHorizontal="true" android:layout_toEndOf="@id/notification_status_avatar"
android:background="?attr/content_warning_button" android:background="?attr/content_warning_button"
android:minHeight="0dp" android:minHeight="0dp"
android:minWidth="150dp" android:minWidth="150dp"
android:paddingBottom="6dp" android:paddingBottom="4dp"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:paddingTop="6dp" android:paddingTop="4dp"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:textAllCaps="true" android:textAllCaps="true"