mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-21 19:55:07 +01:00
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:
parent
22589be2af
commit
f3f1d28497
@ -25,12 +25,12 @@
|
|||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="72dp"
|
android:layout_height="wrap_content"
|
||||||
android:animateLayoutChanges="true"
|
android:animateLayoutChanges="true"
|
||||||
android:paddingTop="@dimen/margin_between_elements"
|
|
||||||
android:paddingBottom="@dimen/margin_between_elements"
|
|
||||||
android:paddingLeft="@dimen/double_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
|
<FrameLayout
|
||||||
android:id="@+id/dialogAvatarFrameLayout"
|
android:id="@+id/dialogAvatarFrameLayout"
|
||||||
@ -43,6 +43,7 @@
|
|||||||
android:id="@id/dialogAvatar"
|
android:id="@id/dialogAvatar"
|
||||||
android:layout_width="48dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
tools:src="@tools:sample/avatars[0]" />
|
tools:src="@tools:sample/avatars[0]" />
|
||||||
|
|
||||||
@ -51,6 +52,7 @@
|
|||||||
android:layout_width="16dp"
|
android:layout_width="16dp"
|
||||||
android:layout_height="16dp"
|
android:layout_height="16dp"
|
||||||
android:layout_gravity="bottom|end"
|
android:layout_gravity="bottom|end"
|
||||||
|
android:contentDescription="@string/protected_conversation"
|
||||||
android:src="@drawable/ic_lock_grey600_24px" />
|
android:src="@drawable/ic_lock_grey600_24px" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@ -58,6 +60,7 @@
|
|||||||
android:layout_width="16dp"
|
android:layout_width="16dp"
|
||||||
android:layout_height="16dp"
|
android:layout_height="16dp"
|
||||||
android:layout_gravity="top|end"
|
android:layout_gravity="top|end"
|
||||||
|
android:contentDescription="@string/favorite_conversation"
|
||||||
android:src="@drawable/ic_star_black_24dp"
|
android:src="@drawable/ic_star_black_24dp"
|
||||||
app:tint="@color/favorite_icon_tint"
|
app:tint="@color/favorite_icon_tint"
|
||||||
app:tintMode="src_in" />
|
app:tintMode="src_in" />
|
||||||
|
@ -355,4 +355,6 @@
|
|||||||
<string name="nc_look_and_feel">Appearance & Sounds</string>
|
<string name="nc_look_and_feel">Appearance & Sounds</string>
|
||||||
<string name="nc_settings_calls_sound">Calls sound</string>
|
<string name="nc_settings_calls_sound">Calls sound</string>
|
||||||
<string name="nc_settings_notifications_sound">Notifications 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>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user