add content description, align layouts

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-04-18 21:45:14 +02:00
parent 3f7d9ee76f
commit 5a58034a0b
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
7 changed files with 40 additions and 27 deletions

View File

@ -65,7 +65,6 @@
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingStart="@dimen/standard_half_padding"
android:text="@string/scope_private_description" android:text="@string/scope_private_description"
android:textColor="@color/textColorMaxContrast" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp" /> android:textSize="14sp" />

View File

@ -19,9 +19,10 @@
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_margin="@dimen/double_margin_between_elements" android:layout_margin="@dimen/double_margin_between_elements"
android:background="@color/bg_default"> android:background="@color/bg_default">
@ -38,17 +39,18 @@
<ImageView <ImageView
android:id="@+id/fileFavoriteImageView" android:id="@+id/fileFavoriteImageView"
android:layout_width="8dp" android:layout_width="16dp"
android:layout_height="8dp" android:layout_height="16dp"
android:layout_below="@id/file_icon" android:layout_below="@id/file_icon"
android:layout_alignEnd="@id/file_icon" android:layout_alignEnd="@id/file_icon"
android:contentDescription="@string/starred"
android:src="@drawable/ic_star_black_24dp" android:src="@drawable/ic_star_black_24dp"
app:tint="@color/grey_600" /> app:tint="@color/favorite_icon_tint" />
<ImageView <ImageView
android:id="@+id/fileEncryptedImageView" android:id="@+id/fileEncryptedImageView"
android:layout_width="8dp" android:layout_width="16dp"
android:layout_height="8dp" android:layout_height="16dp"
android:layout_below="@id/file_icon" android:layout_below="@id/file_icon"
android:layout_alignStart="@+id/file_icon" android:layout_alignStart="@+id/file_icon"
android:src="@drawable/ic_lock_grey600_24px" /> android:src="@drawable/ic_lock_grey600_24px" />
@ -66,7 +68,9 @@
android:marqueeRepeatLimit="1" android:marqueeRepeatLimit="1"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:singleLine="true" android:singleLine="true"
android:textSize="12sp" /> android:textColor="@color/textColorMaxContrast"
android:textSize="12sp"
tools:text="3 minutes ago" />
<TextView <TextView
android:id="@+id/filename_text_view" android:id="@+id/filename_text_view"
@ -80,7 +84,9 @@
android:marqueeRepeatLimit="1" android:marqueeRepeatLimit="1"
android:paddingTop="6dp" android:paddingTop="6dp"
android:singleLine="true" android:singleLine="true"
android:textSize="16sp" /> android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size"
tools:text="filename.md" />
<com.facebook.drawee.view.SimpleDraweeView <com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/file_icon" android:id="@+id/file_icon"

View File

@ -21,33 +21,32 @@
--> -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
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:layout_margin="@dimen/standard_margin"> android:layout_margin="@dimen/standard_margin">
<FrameLayout <FrameLayout
android:id="@+id/frame_layout" android:id="@+id/frame_layout"
android:layout_width="wrap_content" android:layout_width="@dimen/small_item_height"
android:layout_height="wrap_content" android:layout_height="@dimen/small_item_height"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginEnd="@dimen/margin_between_elements"> android:layout_marginEnd="@dimen/margin_between_elements">
<ImageView <ImageView
android:id="@+id/password_protected_image_view" android:id="@+id/password_protected_image_view"
android:layout_width="10dp" android:layout_width="16dp"
android:layout_height="10dp" android:layout_height="16dp"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:layout_marginEnd="6dp" android:contentDescription="@string/password_protected"
android:layout_marginBottom="6dp"
android:src="@drawable/ic_lock_white_24px" android:src="@drawable/ic_lock_white_24px"
android:visibility="visible" /> android:visibility="visible" />
<com.facebook.drawee.view.SimpleDraweeView xmlns:app="http://schemas.android.com/apk/res-auto" <com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/avatar_image" android:id="@+id/avatar_image"
android:layout_width="@dimen/small_item_height" android:layout_width="@dimen/small_item_height"
android:layout_height="@dimen/small_item_height" android:layout_height="@dimen/small_item_height"
android:layout_margin="@dimen/margin_between_elements"
app:roundAsCircle="true" /> app:roundAsCircle="true" />
</FrameLayout> </FrameLayout>
@ -55,7 +54,7 @@
<ImageButton <ImageButton
android:id="@+id/more_menu" android:id="@+id/more_menu"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="@dimen/small_item_height"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginStart="@dimen/standard_margin" android:layout_marginStart="@dimen/standard_margin"
@ -78,7 +77,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="middle" android:ellipsize="middle"
android:singleLine="true" android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceListItem" android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size"
tools:text="Call item text" /> tools:text="Call item text" />
<androidx.emoji.widget.EmojiTextView <androidx.emoji.widget.EmojiTextView
@ -86,7 +86,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:textColor="?android:attr/textColorSecondary" android:textColor="@color/textColorMaxContrast"
android:textSize="14sp"
tools:text="A week ago" /> tools:text="A week ago" />
</LinearLayout> </LinearLayout>

View File

@ -38,7 +38,8 @@
android:layout_height="12dp" android:layout_height="12dp"
android:layout_gravity="bottom|end" android:layout_gravity="bottom|end"
android:background="@drawable/shape_lock_bubble" android:background="@drawable/shape_lock_bubble"
android:visibility="gone" /> android:visibility="gone"
tools:visibility="visible" />
<ImageView <ImageView
android:id="@+id/videoCallImageView" android:id="@+id/videoCallImageView"
@ -46,7 +47,8 @@
android:layout_height="12dp" android:layout_height="12dp"
android:layout_gravity="top|end" android:layout_gravity="top|end"
android:background="@drawable/shape_favorite_bubble" android:background="@drawable/shape_favorite_bubble"
android:visibility="gone" /> android:visibility="gone"
tools:visibility="visible" />
<com.facebook.drawee.view.SimpleDraweeView <com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/simple_drawee_view" android:id="@+id/simple_drawee_view"

View File

@ -51,16 +51,18 @@
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:background="@drawable/shape_lock_bubble" /> android:background="@drawable/shape_lock_bubble"
android:contentDescription="@string/password_protected" />
<ImageView <ImageView
android:id="@+id/favoriteConversationImageView" android:id="@+id/favoriteConversationImageView"
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/starred"
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" />
</FrameLayout> </FrameLayout>

View File

@ -362,6 +362,9 @@
<string name="nc_phone_book_integration_chat_via">Chat via %s</string> <string name="nc_phone_book_integration_chat_via">Chat via %s</string>
<string name="nc_phone_book_integration_account_not_found">Account not found</string> <string name="nc_phone_book_integration_account_not_found">Account not found</string>
<string name="starred">Favorite</string>
<string name="password_protected">Password protected</string>
<string name="avatar">Avatar</string> <string name="avatar">Avatar</string>
<string name="account_icon">Account icon</string> <string name="account_icon">Account icon</string>
<string name="userinfo_no_info_headline">No personal info set</string> <string name="userinfo_no_info_headline">No personal info set</string>

View File

@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 3 errors and 122 warnings</span> <span class="mdl-layout-title">Lint Report: 3 errors and 117 warnings</span>