mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 17:08:34 +03:00
Improve chat bubble sizes
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
94accdf6d1
commit
0f35e36047
9 changed files with 21 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue