Fix for issue #1224 showing complete notification on click

This commit is contained in:
Jatin Rao 2018-03-01 15:57:13 +05:30
parent 89245a6d5b
commit 534215fdbc
5 changed files with 123 additions and 24 deletions

View file

@ -34,7 +34,7 @@
tools:text="@string/placeholder_place_distance"
/>
<TextView
<fr.free.nrw.commons.notification.ExpandableTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -46,12 +46,12 @@
android:layout_toRightOf="@id/icon"
android:layout_toStartOf="@id/time"
android:ellipsize="end"
android:maxLines="2"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
tools:text="@string/placeholder_place_name"
/>
<TextView
<fr.free.nrw.commons.notification.ExpandableTextView
android:id="@+id/description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -62,7 +62,7 @@
android:layout_below="@id/title"
android:layout_marginBottom="16dp"
android:ellipsize="end"
android:maxLines="4"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
tools:text="@string/placeholder_place_description"
/>

View file

@ -16,4 +16,8 @@
<attr name="drawableEnd" format="reference"/>
<attr name="drawableBottom" format="reference"/>
</declare-styleable>
<declare-styleable name="ExpandableTextView">
<attr name="trimLength" format="integer"/>
</declare-styleable>
</resources>