From 67f3ce6e4eb311ab37260ad30efc005a0643f520 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Fri, 11 Aug 2017 16:34:43 -0400 Subject: [PATCH] Changes content warning show more/less button to use a drawable with built-in shadow for compatibility with API levels below 21. --- app/src/main/res/drawable/toggle_small.9.png | Bin 0 -> 413 bytes app/src/main/res/drawable/toggle_small.xml | 6 ---- .../res/drawable/toggle_small_light.9.png | Bin 0 -> 421 bytes .../main/res/drawable/toggle_small_light.xml | 6 ---- app/src/main/res/layout/item_status.xml | 27 +++++++++--------- 5 files changed, 13 insertions(+), 26 deletions(-) create mode 100644 app/src/main/res/drawable/toggle_small.9.png delete mode 100644 app/src/main/res/drawable/toggle_small.xml create mode 100644 app/src/main/res/drawable/toggle_small_light.9.png delete mode 100644 app/src/main/res/drawable/toggle_small_light.xml diff --git a/app/src/main/res/drawable/toggle_small.9.png b/app/src/main/res/drawable/toggle_small.9.png new file mode 100644 index 0000000000000000000000000000000000000000..5b910ee2cb0bba6574d22ae096bced360ba53155 GIT binary patch literal 413 zcmV;O0b>4%P)K>QEca6zEqZz(j~ z7^wdN5Whz^TnK3R8ww3Kfg1h}W;iJMFahzX;h-=d4HiWD0;Y3})B?+?G)XNm!zs!{ z|NsB{_WbF6TU?olPh3i2Ju?%tBRLuA&+p&+UcG!&fRz2=WednWPF7ZKbwLr4Da=ev zhK!6%T*O-P``52S@7})Z`uq3iHKc+IrBq}FN(cb4Fch-`X^ - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/toggle_small_light.9.png b/app/src/main/res/drawable/toggle_small_light.9.png new file mode 100644 index 0000000000000000000000000000000000000000..24bb1f7ec074432f7a6661a43e0d63665ea0a42e GIT binary patch literal 421 zcmV;W0b2fvP)9ApQfALk95(Ocs+eJF@j3tikNc<#by|zn P00000NkvXXu0mjf=*q9Q literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable/toggle_small_light.xml b/app/src/main/res/drawable/toggle_small_light.xml deleted file mode 100644 index 6f317d60..00000000 --- a/app/src/main/res/drawable/toggle_small_light.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_status.xml b/app/src/main/res/layout/item_status.xml index 41112611..ad8c21f7 100644 --- a/app/src/main/res/layout/item_status.xml +++ b/app/src/main/res/layout/item_status.xml @@ -119,35 +119,34 @@ + android:layout_toEndOf="@+id/status_avatar" + android:layout_toRightOf="@+id/status_avatar" + android:focusable="true" + android:visibility="gone" + app:paddingHorizontal="4dp"> + android:textOff="@string/status_content_warning_show_more" + android:textOn="@string/status_content_warning_show_less" + android:textSize="12sp" />