Skip to content

Commit cec47cf

Browse files
committed
Added new color attribute for settign chat bubble color, no need of exta drawable if using this
1 parent f8713c0 commit cec47cf

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

helpstack/res/layout/hs_fragment_search.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<ListView
99
android:id="@+id/searchList"
1010
android:layout_width="match_parent"
11-
android:layout_height="match_parent"/>
11+
android:layout_height="match_parent"
12+
style="@style/hs_listViewStyle"/>
1213

1314
</FrameLayout>

helpstack/res/values/hs_colors.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<color name="hs_darkGreycolor">#B5B5B5</color>
1212
<color name="hs_darkerGreycolor">#ff555555</color>
1313

14-
<color name="hs_rightchat_bubblecolor">#228CD1</color>
15-
<color name="hs_leftchat_bubblecolor">#FFFFFF</color>
14+
<color name="hs_rightchat_bubblecolor_defaultColor">#228CD1</color>
15+
<color name="hs_leftchat_bubblecolor_defaultColor">#FFFFFF</color>
1616
<color name="hs_leftchat_messageTextcolor">#000000</color>
1717
<color name="hs_rightchat_messageTextcolor">#FFFFFF</color>
1818
<color name="hs_message_moreinfoTextColor">#000000</color>

helpstack/res/values/hs_default_theme_base.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
<item name="android:textSize">@dimen/hs_listView_ChildView_TextSize</item>
5050
</style>
5151

52+
53+
<!-- Chat screen - right chat bubble color, if using this no need to change property of bubble and bubble triangle -->
54+
<color name="hs_rightchat_bubblecolor">@color/hs_rightchat_bubblecolor_defaultColor</color>
55+
5256
<!-- Chat screen - right chat bubble default Style -->
5357
<style name="hs_rightChatBubble_defaultStyle">
5458
<item name="android:background">@drawable/right_chat_bubble</item>
@@ -59,6 +63,9 @@
5963
<item name="android:background">@drawable/right_chat_bubble_triangle</item>
6064
</style>
6165

66+
<!-- Chat screen - right chat bubble color, if using this no need to change property of bubble and bubble triangle -->
67+
<color name="hs_leftchat_bubblecolor">@color/hs_leftchat_bubblecolor_defaultColor</color>
68+
6269
<!-- Chat screen - left chat bubble default Style -->
6370
<style name="hs_leftChatBubble_defaultStyle">
6471
<item name="android:background">@drawable/left_chat_bubble</item>
@@ -69,6 +76,8 @@
6976
<item name="android:background">@drawable/left_chat_bubble_triangle</item>
7077
</style>
7178

79+
80+
7281
<!-- Chat screen - message text default Style -->
7382
<style name="hs_messageText_defaultStyle">
7483
<item name="android:paddingTop">3dp</item>
@@ -113,5 +122,7 @@
113122
<item name="android:textColor">@color/hs_editTextcolor</item>
114123
<item name="android:textSize">@dimen/hs_default_text_size</item>
115124
</style>
125+
126+
116127

117128
</resources>

0 commit comments

Comments
 (0)