Improve chat bubble sizes

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-09-13 10:57:19 +02:00
parent 94accdf6d1
commit 0f35e36047
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
9 changed files with 21 additions and 16 deletions

View file

@ -24,6 +24,7 @@
package com.nextcloud.talk.adapters.messages
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
@ -87,6 +88,8 @@ class Reaction {
break
}
}
} else {
binding.reactionsEmojiWrapper.visibility = View.GONE
}
}

View file

@ -23,7 +23,7 @@
android:shape="rectangle">
<corners
android:topLeftRadius="0dp"
android:topLeftRadius="2dp"
android:bottomRightRadius="@dimen/message_bubble_corners_radius"
android:bottomLeftRadius="@dimen/message_bubble_corners_radius"
android:topRightRadius="@dimen/message_bubble_corners_radius" />

View file

@ -24,7 +24,7 @@
<corners
android:bottomLeftRadius="@dimen/message_bubble_corners_radius"
android:topRightRadius="0dp"
android:topRightRadius="2dp"
android:topLeftRadius="@dimen/message_bubble_corners_radius"
android:bottomRightRadius="@dimen/message_bubble_corners_radius" />

View file

@ -64,10 +64,10 @@
android:paddingBottom="0dp"
android:visibility="gone"
app:dateHeaderTextSize="13sp"
app:incomingBubblePaddingBottom="@dimen/message_bubble_corners_padding"
app:incomingBubblePaddingLeft="@dimen/message_bubble_corners_padding"
app:incomingBubblePaddingRight="@dimen/message_bubble_corners_padding"
app:incomingBubblePaddingTop="@dimen/message_bubble_corners_padding"
app:incomingBubblePaddingBottom="@dimen/message_bubble_corners_vertical_padding"
app:incomingBubblePaddingLeft="@dimen/message_bubble_corners_horizontal_padding"
app:incomingBubblePaddingRight="@dimen/message_bubble_corners_horizontal_padding"
app:incomingBubblePaddingTop="@dimen/message_bubble_corners_vertical_padding"
app:incomingDefaultBubbleColor="@color/bg_message_list_incoming_bubble"
app:incomingDefaultBubblePressedColor="@color/bg_message_list_incoming_bubble"
app:incomingDefaultBubbleSelectedColor="@color/transparent"
@ -77,10 +77,10 @@
app:incomingTimeTextColor="@color/no_emphasis_text"
app:incomingTextSize="@dimen/chat_text_size"
app:incomingTimeTextSize="12sp"
app:outcomingBubblePaddingBottom="@dimen/message_bubble_corners_padding"
app:outcomingBubblePaddingLeft="@dimen/message_bubble_corners_padding"
app:outcomingBubblePaddingRight="@dimen/message_bubble_corners_padding"
app:outcomingBubblePaddingTop="@dimen/message_bubble_corners_padding"
app:outcomingBubblePaddingBottom="@dimen/message_bubble_corners_vertical_padding"
app:outcomingBubblePaddingLeft="@dimen/message_bubble_corners_horizontal_padding"
app:outcomingBubblePaddingRight="@dimen/message_bubble_corners_horizontal_padding"
app:outcomingBubblePaddingTop="@dimen/message_bubble_corners_vertical_padding"
app:outcomingDefaultBubbleColor="@color/colorPrimary"
app:outcomingDefaultBubblePressedColor="@color/colorPrimary"
app:outcomingDefaultBubbleSelectedColor="@color/transparent"

View file

@ -78,7 +78,7 @@
<ImageView
android:id="@+id/checkMark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="@dimen/message_bubble_checkmark_height"
android:layout_below="@id/messageTime"
android:layout_marginStart="8dp"
android:contentDescription="@null"

View file

@ -90,7 +90,7 @@
<ImageView
android:id="@+id/checkMark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="@dimen/message_bubble_checkmark_height"
android:layout_below="@id/messageTime"
android:layout_marginStart="8dp"
android:contentDescription="@null"

View file

@ -75,7 +75,7 @@
<ImageView
android:id="@+id/checkMark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="@dimen/message_bubble_checkmark_height"
android:layout_below="@id/messageTime"
android:layout_marginStart="8dp"
android:contentDescription="@null"

View file

@ -100,7 +100,7 @@
<ImageView
android:id="@+id/checkMark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="@dimen/message_bubble_checkmark_height"
android:layout_below="@id/messageTime"
android:layout_marginStart="8dp"
android:contentDescription="@null"

View file

@ -37,8 +37,10 @@
<dimen name="avatar_size_big">96dp</dimen>
<dimen name="chat_text_size">14sp</dimen>
<dimen name="message_bubble_corners_radius">@dimen/dialogBorderRadius</dimen>
<dimen name="message_bubble_corners_padding">16dp</dimen>
<dimen name="message_bubble_corners_radius">20dp</dimen>
<dimen name="message_bubble_corners_horizontal_padding">16dp</dimen>
<dimen name="message_bubble_corners_vertical_padding">12dp</dimen>
<dimen name="message_bubble_checkmark_height">18dp</dimen>
<dimen name="geocoding_result_text_size">18sp</dimen>