Add toggle support to notification layout as well

This commit is contained in:
HellPie 2018-08-31 05:10:43 +02:00 committed by HellPie
parent ff659f1ee8
commit 4dbed269f3
1 changed files with 14 additions and 1 deletions

View File

@ -115,6 +115,19 @@
android:textSize="?attr/status_text_medium" android:textSize="?attr/status_text_medium"
tools:text="Example status here" /> tools:text="Example status here" />
<ToggleButton
style="@style/Widget.AppCompat.Button.Borderless"
android:id="@+id/button_toggle_notification_content"
android:layout_width="match_parent"
android:layout_height="32dp"
android:padding="0dp"
android:layout_toEndOf="@id/status_avatar"
android:layout_below="@id/notification_content"
android:textOff="@string/status_content_show_less"
android:textOn="@string/status_content_show_more"
android:visibility="gone" />
<com.keylesspalace.tusky.view.RoundedImageView <com.keylesspalace.tusky.view.RoundedImageView
android:id="@+id/notification_status_avatar" android:id="@+id/notification_status_avatar"
android:layout_width="48dp" android:layout_width="48dp"