Fake chat style fixed.

This commit is contained in:
Anton Chekulaev 2020-08-26 16:29:00 +10:00
parent debaeb86b6
commit 1fc06a46f0
2 changed files with 15 additions and 18 deletions

View File

@ -8,7 +8,7 @@
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
style="@style/FakeChatViewOutgoingMessageBubble" style="@style/FakeChatViewMessageBubble.Outgoing"
android:id="@+id/bubble1" android:id="@+id/bubble1"
android:layout_width="@dimen/fake_chat_view_bubble_width" android:layout_width="@dimen/fake_chat_view_bubble_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -17,7 +17,7 @@
android:layout_gravity="right" /> android:layout_gravity="right" />
<TextView <TextView
style="@style/FakeChatViewIncomingMessageBubble" style="@style/FakeChatViewMessageBubble.Incoming"
android:id="@+id/bubble2" android:id="@+id/bubble2"
android:layout_width="@dimen/fake_chat_view_bubble_width" android:layout_width="@dimen/fake_chat_view_bubble_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -26,7 +26,7 @@
android:layout_gravity="left" /> android:layout_gravity="left" />
<TextView <TextView
style="@style/FakeChatViewOutgoingMessageBubble" style="@style/FakeChatViewMessageBubble.Outgoing"
android:id="@+id/bubble3" android:id="@+id/bubble3"
android:layout_width="@dimen/fake_chat_view_bubble_width" android:layout_width="@dimen/fake_chat_view_bubble_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -35,7 +35,7 @@
android:layout_gravity="right" /> android:layout_gravity="right" />
<TextView <TextView
style="@style/FakeChatViewIncomingMessageBubble" style="@style/FakeChatViewMessageBubble.Incoming"
android:id="@+id/bubble4" android:id="@+id/bubble4"
android:layout_width="@dimen/fake_chat_view_bubble_width" android:layout_width="@dimen/fake_chat_view_bubble_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -44,7 +44,7 @@
android:layout_gravity="left" /> android:layout_gravity="left" />
<TextView <TextView
style="@style/FakeChatViewIncomingMessageBubble" style="@style/FakeChatViewMessageBubble.Incoming"
android:id="@+id/bubble5" android:id="@+id/bubble5"
android:layout_width="@dimen/fake_chat_view_bubble_width" android:layout_width="@dimen/fake_chat_view_bubble_width"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@ -138,28 +138,25 @@
<item name="android:maxLines">1</item> <item name="android:maxLines">1</item>
</style> </style>
<style name="FakeChatViewIncomingMessageBubble"> <style name="FakeChatViewMessageBubble">
<item name="android:background">@drawable/fake_chat_view_incoming_message_background</item>
<item name="android:paddingLeft">@dimen/medium_spacing</item> <item name="android:paddingLeft">@dimen/medium_spacing</item>
<item name="android:paddingTop">12dp</item> <item name="android:paddingTop">12dp</item>
<item name="android:paddingRight">@dimen/medium_spacing</item> <item name="android:paddingRight">@dimen/medium_spacing</item>
<item name="android:paddingBottom">12dp</item> <item name="android:paddingBottom">12dp</item>
<item name="android:textSize">15sp</item> <item name="android:textSize">15sp</item>
<item name="android:fontFamily">sans-serif-medium</item> <item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@color/fake_chat_bubble_text</item> <item name="android:elevation">0dp</item>
<item name="android:elevation">20dp</item> <item name="android:textColor">?android:textColorPrimary</item>
</style> </style>
<style name="FakeChatViewOutgoingMessageBubble"> <style name="FakeChatViewMessageBubble.Incoming">
<item name="android:background">@drawable/fake_chat_view_incoming_message_background</item>
<!-- <item name="android:textColor">@color/fake_chat_bubble_text</item>-->
</style>
<style name="FakeChatViewMessageBubble.Outgoing">
<item name="android:background">@drawable/fake_chat_view_outgoing_message_background</item> <item name="android:background">@drawable/fake_chat_view_outgoing_message_background</item>
<item name="android:paddingLeft">@dimen/medium_spacing</item> <!-- <item name="android:textColor">@color/text</item>-->
<item name="android:paddingTop">12dp</item>
<item name="android:paddingRight">@dimen/medium_spacing</item>
<item name="android:paddingBottom">12dp</item>
<item name="android:textSize">15sp</item>
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textColor">@color/text</item>
<item name="android:elevation">20dp</item>
</style> </style>
<style name="Session.SettingsTheme" parent="PreferenceThemeOverlay.v14.Material" > <style name="Session.SettingsTheme" parent="PreferenceThemeOverlay.v14.Material" >