make conversation item more accessible: adding image description, grow depending on text size

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-03-22 12:55:18 +01:00
parent 22589be2af
commit f3f1d28497
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 9 additions and 4 deletions

View File

@ -25,12 +25,12 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:paddingTop="@dimen/margin_between_elements"
android:paddingBottom="@dimen/margin_between_elements"
android:paddingLeft="@dimen/double_margin_between_elements"
android:paddingRight="@dimen/double_margin_between_elements">
android:paddingTop="@dimen/margin_between_elements"
android:paddingRight="@dimen/double_margin_between_elements"
android:paddingBottom="@dimen/margin_between_elements">
<FrameLayout
android:id="@+id/dialogAvatarFrameLayout"
@ -43,6 +43,7 @@
android:id="@id/dialogAvatar"
android:layout_width="48dp"
android:layout_height="48dp"
android:contentDescription="@null"
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars[0]" />
@ -51,6 +52,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_gravity="bottom|end"
android:contentDescription="@string/protected_conversation"
android:src="@drawable/ic_lock_grey600_24px" />
<ImageView
@ -58,6 +60,7 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_gravity="top|end"
android:contentDescription="@string/favorite_conversation"
android:src="@drawable/ic_star_black_24dp"
app:tint="@color/favorite_icon_tint"
app:tintMode="src_in" />

View File

@ -355,4 +355,6 @@
<string name="nc_look_and_feel">Appearance &amp; Sounds</string>
<string name="nc_settings_calls_sound">Calls sound</string>
<string name="nc_settings_notifications_sound">Notifications sound</string>
<string name="protected_conversation">protected conversation</string>
<string name="favorite_conversation">favorite conversation</string>
</resources>