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