mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
a11y - raise hitbox of icons to 48dp
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
9c9d2f8a8f
commit
9a4d7b78a2
@ -2,6 +2,8 @@
|
|||||||
~ Nextcloud Talk application
|
~ Nextcloud Talk application
|
||||||
~
|
~
|
||||||
~ @author Mario Danic
|
~ @author Mario Danic
|
||||||
|
~ @author Andy Scherzinger
|
||||||
|
~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
|
||||||
~ Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com>
|
~ Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com>
|
||||||
~
|
~
|
||||||
~ This program is free software: you can redistribute it and/or modify
|
~ This program is free software: you can redistribute it and/or modify
|
||||||
@ -78,14 +80,14 @@
|
|||||||
android:inputType="textLongMessage|textAutoComplete"
|
android:inputType="textLongMessage|textAutoComplete"
|
||||||
android:maxLength="1000"
|
android:maxLength="1000"
|
||||||
app:showAttachmentButton="true"
|
app:showAttachmentButton="true"
|
||||||
app:attachmentButtonHeight="28dp"
|
app:attachmentButtonHeight="48dp"
|
||||||
app:attachmentButtonWidth="28dp"
|
app:attachmentButtonWidth="48dp"
|
||||||
app:attachmentButtonIcon="@drawable/ic_baseline_attach_file_24"
|
app:attachmentButtonIcon="@drawable/ic_baseline_attach_file_24"
|
||||||
app:attachmentButtonBackground="@color/transparent"
|
app:attachmentButtonBackground="@color/transparent"
|
||||||
app:inputButtonDefaultBgColor="@color/colorPrimary"
|
app:inputButtonDefaultBgColor="@color/colorPrimary"
|
||||||
app:inputButtonHeight="35dp"
|
app:inputButtonHeight="48dp"
|
||||||
app:inputButtonMargin="8dp"
|
app:inputButtonMargin="8dp"
|
||||||
app:inputButtonWidth="36dp"
|
app:inputButtonWidth="48dp"
|
||||||
app:inputHint="@string/nc_hint_enter_a_message"
|
app:inputHint="@string/nc_hint_enter_a_message"
|
||||||
app:inputTextColor="@color/nc_incoming_text_default"
|
app:inputTextColor="@color/nc_incoming_text_default"
|
||||||
app:inputTextSize="16sp"
|
app:inputTextSize="16sp"
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
~ Nextcloud Talk application
|
~ Nextcloud Talk application
|
||||||
~
|
~
|
||||||
~ @author Mario Danic
|
~ @author Mario Danic
|
||||||
|
~ @author Marcel Hibbe
|
||||||
|
~ @author Andy Scherzinger
|
||||||
|
~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
|
||||||
|
~ Copyright (C) 2021 Marcel Hibbe <dev@mhibbe.de>
|
||||||
~ Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com>
|
~ Copyright (C) 2017-2018 Mario Danic <mario@lovelyhq.com>
|
||||||
~
|
~
|
||||||
~ This program is free software: you can redistribute it and/or modify
|
~ This program is free software: you can redistribute it and/or modify
|
||||||
@ -36,24 +40,25 @@
|
|||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@id/attachmentButton"
|
android:id="@id/attachmentButton"
|
||||||
android:layout_width="28dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="28dp"
|
android:layout_height="48dp"
|
||||||
|
android:padding="10dp"
|
||||||
android:layout_below="@id/quotedChatMessageView"
|
android:layout_below="@id/quotedChatMessageView"
|
||||||
|
android:background="@color/transparent"
|
||||||
|
app:tint="?attr/colorControlNormal"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
android:layout_marginTop="5dp"
|
|
||||||
android:contentDescription="@string/nc_add_attachment" />
|
android:contentDescription="@string/nc_add_attachment" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/smileyButton"
|
android:id="@+id/smileyButton"
|
||||||
android:layout_width="28dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="28dp"
|
android:layout_height="48dp"
|
||||||
|
android:padding="10dp"
|
||||||
android:layout_below="@id/quotedChatMessageView"
|
android:layout_below="@id/quotedChatMessageView"
|
||||||
android:layout_toEndOf="@id/attachmentButton"
|
android:layout_toEndOf="@id/attachmentButton"
|
||||||
android:background="@color/transparent"
|
android:background="@color/transparent"
|
||||||
android:src="@drawable/ic_insert_emoticon_black_24dp"
|
android:src="@drawable/ic_insert_emoticon_black_24dp"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
android:layout_marginTop="5dp"
|
|
||||||
android:layout_marginStart="8dp"
|
|
||||||
app:tint="?attr/colorControlNormal"
|
app:tint="?attr/colorControlNormal"
|
||||||
android:contentDescription="@string/nc_add_emojis" />
|
android:contentDescription="@string/nc_add_emojis" />
|
||||||
|
|
||||||
@ -63,11 +68,12 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@+id/quotedChatMessageView"
|
android:layout_below="@+id/quotedChatMessageView"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_toEndOf="@id/smileyButton"
|
|
||||||
android:layout_toStartOf="@id/messageSendButton"
|
android:layout_toStartOf="@id/messageSendButton"
|
||||||
|
android:layout_toEndOf="@id/smileyButton"
|
||||||
android:imeOptions="actionDone"
|
android:imeOptions="actionDone"
|
||||||
android:inputType="textAutoCorrect|textMultiLine|textCapSentences"
|
android:inputType="textAutoCorrect|textMultiLine|textCapSentences"
|
||||||
android:lineSpacingMultiplier="1.2" />
|
android:lineSpacingMultiplier="1.2"
|
||||||
|
android:minHeight="48dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/slideToCancelDescription"
|
android:id="@+id/slideToCancelDescription"
|
||||||
@ -88,14 +94,14 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/microphoneEnabledInfoBackground"
|
android:id="@+id/microphoneEnabledInfoBackground"
|
||||||
android:layout_width="35dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="35dp"
|
android:layout_height="48dp"
|
||||||
android:layout_below="@id/quotedChatMessageView"
|
android:layout_below="@id/quotedChatMessageView"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:background="@color/bg_default"
|
android:background="@color/bg_default"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"
|
tools:visibility="gone"
|
||||||
android:contentDescription="@null" />
|
android:contentDescription="@null" />
|
||||||
|
|
||||||
<!-- the height of this ImageView is used to define the overall height of the
|
<!-- the height of this ImageView is used to define the overall height of the
|
||||||
@ -104,15 +110,15 @@
|
|||||||
linebreaks. -->
|
linebreaks. -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/microphoneEnabledInfo"
|
android:id="@+id/microphoneEnabledInfo"
|
||||||
android:layout_width="35dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="43dp"
|
android:layout_height="48dp"
|
||||||
android:layout_below="@id/quotedChatMessageView"
|
android:layout_below="@id/quotedChatMessageView"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:src="@drawable/ic_baseline_mic_red_24"
|
android:src="@drawable/ic_baseline_mic_red_24"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="gone"/>
|
||||||
|
|
||||||
<Chronometer
|
<Chronometer
|
||||||
android:id="@+id/audioRecordDuration"
|
android:id="@+id/audioRecordDuration"
|
||||||
@ -128,12 +134,12 @@
|
|||||||
android:paddingEnd="5dp"
|
android:paddingEnd="5dp"
|
||||||
android:background="@color/bg_default"
|
android:background="@color/bg_default"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible" />
|
tools:visibility="gone" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@id/messageSendButton"
|
android:id="@id/messageSendButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="48dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="48dp"
|
||||||
android:layout_below="@id/quotedChatMessageView"
|
android:layout_below="@id/quotedChatMessageView"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
@ -142,8 +148,8 @@
|
|||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/recordAudioButton"
|
android:id="@+id/recordAudioButton"
|
||||||
android:layout_width="36dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="36dp"
|
android:layout_height="48dp"
|
||||||
android:layout_below="@id/quotedChatMessageView"
|
android:layout_below="@id/quotedChatMessageView"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:background="@color/transparent"
|
android:background="@color/transparent"
|
||||||
|
Loading…
Reference in New Issue
Block a user