Content warnings now show/hide on all timelines.
This commit is contained in:
parent
1429dfc7b5
commit
2b6bc8a5c7
5 changed files with 88 additions and 14 deletions
6
app/src/main/res/drawable/toggle_small.xml
Normal file
6
app/src/main/res/drawable/toggle_small.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#ffafafaf" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
|
|
@ -69,13 +69,43 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/status_content_warning_bar"
|
||||
android:visibility="gone"
|
||||
android:layout_toRightOf="@+id/status_avatar"
|
||||
android:layout_toEndOf="@+id/status_avatar"
|
||||
android:layout_below="@+id/status_name_bar"
|
||||
android:layout_marginBottom="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/status_content_warning_description" />
|
||||
|
||||
<ToggleButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp"
|
||||
android:id="@+id/status_content_warning_button"
|
||||
android:textOn="@string/status_content_warning_show_less"
|
||||
android:textOff="@string/status_content_warning_show_more"
|
||||
android:background="@drawable/toggle_small"
|
||||
android:padding="4dp"
|
||||
android:layout_marginLeft="8dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/status_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/status_avatar"
|
||||
android:layout_toEndOf="@+id/status_avatar"
|
||||
android:layout_below="@+id/status_name_bar" />
|
||||
android:layout_below="@+id/status_content_warning_bar" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/status_media_preview_container"
|
||||
|
|
|
|||
|
|
@ -67,6 +67,8 @@
|
|||
<string name="status_boosted_format">%s boosted</string>
|
||||
<string name="status_sensitive_media_title">Sensitive Media</string>
|
||||
<string name="status_sensitive_media_directions">Click to view.</string>
|
||||
<string name="status_content_warning_show_more">Show More</string>
|
||||
<string name="status_content_warning_show_less">Show Less</string>
|
||||
|
||||
<string name="footer_retry_statuses">Could not load the rest of the statuses.</string>
|
||||
<string name="footer_retry_notifications">Could not load the rest of the statuses.</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue