Skip to content

Commit fb08b01

Browse files
committed
Add prefix to resource file
1 parent 522523f commit fb08b01

18 files changed

+26
-26
lines changed

qiscus-sdk/src/main/java/com/qiscus/sdk/ui/adapter/QiscusChatAdapter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ public int getItemViewType(int position) {
7575
protected int getItemResourceLayout(int viewType) {
7676
switch (viewType) {
7777
case TYPE_MESSAGE_ME:
78-
return R.layout.item_chat_text_me;
78+
return R.layout.item_qiscus_chat_text_me;
7979
case TYPE_MESSAGE_OTHER:
80-
return R.layout.item_chat_text;
80+
return R.layout.item_qiscus_chat_text;
8181
case TYPE_PICTURE_ME:
82-
return R.layout.item_chat_img_me;
82+
return R.layout.item_qiscus_chat_img_me;
8383
case TYPE_PICTURE_OTHER:
84-
return R.layout.item_chat_img;
84+
return R.layout.item_qiscus_chat_img;
8585
case TYPE_FILE_ME:
86-
return R.layout.item_chat_file_me;
86+
return R.layout.item_qiscus_chat_file_me;
8787
case TYPE_FILE_OTHER:
88-
return R.layout.item_chat_file;
88+
return R.layout.item_qiscus_chat_file;
8989
default:
90-
return R.layout.item_chat_text;
90+
return R.layout.item_qiscus_chat_text;
9191
}
9292
}
9393

qiscus-sdk/src/main/java/com/qiscus/sdk/ui/adapter/viewholder/QiscusMessageViewHolder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ public QiscusMessageViewHolder(View itemView, OnItemClickListener itemClickListe
7474
rightBubbleColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getRightBubbleColor());
7575
rightBubbleTextColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getRightBubbleTextColor());
7676
rightBubbleTimeColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getRightBubbleTimeColor());
77-
rightBubbleDrawable = ContextCompat.getDrawable(Qiscus.getApps(), R2.drawable.rounded_primary_light_chat_bg);
77+
rightBubbleDrawable = ContextCompat.getDrawable(Qiscus.getApps(), R.drawable.qiscus_rounded_primary_light_chat_bg);
7878
rightBubbleDrawable.setColorFilter(rightBubbleColor, PorterDuff.Mode.SRC_ATOP);
7979

8080
leftBubbleColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getLeftBubbleColor());
8181
leftBubbleTextColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getLeftBubbleTextColor());
8282
leftBubbleTimeColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getLeftBubbleTimeColor());
83-
leftBubbleDrawable = ContextCompat.getDrawable(Qiscus.getApps(), R2.drawable.rounded_primary_chat_bg);
83+
leftBubbleDrawable = ContextCompat.getDrawable(Qiscus.getApps(), R.drawable.qiscus_rounded_primary_chat_bg);
8484
leftBubbleDrawable.setColorFilter(leftBubbleColor, PorterDuff.Mode.SRC_ATOP);
8585

8686
failedToSendMessageColor = ContextCompat.getColor(Qiscus.getApps(), Qiscus.getChatConfig().getFailedToSendMessageColor());

qiscus-sdk/src/main/java/com/qiscus/sdk/ui/fragment/QiscusChatFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected void onViewReady(Bundle savedInstanceState) {
105105

106106
swipeRefreshLayout.setOnRefreshListener(this);
107107

108-
animation = AnimationUtils.loadAnimation(getActivity(), R.anim.simple_grow);
108+
animation = AnimationUtils.loadAnimation(getActivity(), R.anim.qiscus_simple_grow);
109109

110110
NotificationManagerCompat.from(getActivity()).cancel(qiscusChatRoom.getId());
111111
QiscusCacheManager.getInstance().clearMessageNotifItems(qiscusChatRoom.getId());

qiscus-sdk/src/main/res/drawable/bt_selector_grey.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
<solid android:color="#40727272" />
1616
</shape>
1717
</item>
18-
<item android:drawable="@drawable/transparent" />
18+
<item android:drawable="@drawable/qiscus_transparent" />
1919
</selector>

qiscus-sdk/src/main/res/layout/fragment_qiscus_chat.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
android:layout_height="wrap_content"
6969
android:layout_gravity="center_horizontal"
7070
android:layout_marginTop="12dp"
71-
android:background="@drawable/rounded_accent_bg"
71+
android:background="@drawable/qiscus_rounded_accent_bg"
7272
android:elevation="1dp"
7373
android:padding="8dp"
7474
android:text="@string/new_message"

qiscus-sdk/src/main/res/layout/item_chat_file.xml renamed to qiscus-sdk/src/main/res/layout/item_qiscus_chat_file.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
android:layout_marginLeft="19dp"
3838
android:layout_marginRight="64dp"
3939
android:layout_marginStart="19dp"
40-
android:background="@drawable/rounded_primary_chat_bg"
40+
android:background="@drawable/qiscus_rounded_primary_chat_bg"
4141
android:gravity="end"
4242
android:orientation="horizontal"
4343
android:padding="8dp">
@@ -47,7 +47,7 @@
4747
android:layout_width="236dp"
4848
android:layout_height="50dp"
4949
android:layout_margin="4dp"
50-
android:background="@drawable/round_dark_white"
50+
android:background="@drawable/qiscus_rounded_dark_white"
5151
android:padding="4dp">
5252

5353
<ImageView
@@ -82,7 +82,7 @@
8282
android:layout_centerVertical="true"
8383
android:layout_marginLeft="10dp"
8484
android:layout_marginStart="10dp"
85-
android:background="@drawable/circle_divider"
85+
android:background="@drawable/qiscus_circle_divider"
8686
android:padding="4dp"
8787
android:src="@drawable/ic_download"
8888
android:tint="@color/qiscus_secondary_text"

qiscus-sdk/src/main/res/layout/item_chat_file_me.xml renamed to qiscus-sdk/src/main/res/layout/item_qiscus_chat_file_me.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
android:layout_marginLeft="64dp"
4343
android:layout_marginRight="19dp"
4444
android:layout_marginStart="64dp"
45-
android:background="@drawable/rounded_primary_light_chat_bg"
45+
android:background="@drawable/qiscus_rounded_primary_light_chat_bg"
4646
android:gravity="end"
4747
android:orientation="horizontal"
4848
android:padding="8dp">
@@ -52,7 +52,7 @@
5252
android:layout_width="236dp"
5353
android:layout_height="50dp"
5454
android:layout_margin="4dp"
55-
android:background="@drawable/round_dark_white"
55+
android:background="@drawable/qiscus_rounded_dark_white"
5656
android:padding="4dp">
5757

5858
<ImageView
@@ -87,7 +87,7 @@
8787
android:layout_centerVertical="true"
8888
android:layout_marginLeft="10dp"
8989
android:layout_marginStart="10dp"
90-
android:background="@drawable/circle_divider"
90+
android:background="@drawable/qiscus_circle_divider"
9191
android:padding="4dp"
9292
android:src="@drawable/ic_download"
9393
android:tint="@color/qiscus_secondary_text"

qiscus-sdk/src/main/res/layout/item_chat_img.xml renamed to qiscus-sdk/src/main/res/layout/item_qiscus_chat_img.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
android:layout_marginLeft="19dp"
3838
android:layout_marginRight="64dp"
3939
android:layout_marginStart="19dp"
40-
android:background="@drawable/rounded_primary_chat_bg"
40+
android:background="@drawable/qiscus_rounded_primary_chat_bg"
4141
android:gravity="end"
4242
android:orientation="horizontal"
4343
android:padding="8dp">
@@ -77,7 +77,7 @@
7777
android:layout_width="192dp"
7878
android:layout_height="192dp"
7979
android:layout_margin="4dp"
80-
android:background="@drawable/round_dark_white"
80+
android:background="@drawable/qiscus_rounded_dark_white"
8181
android:padding="4dp">
8282

8383
<ImageView
@@ -108,7 +108,7 @@
108108
android:layout_alignParentBottom="true"
109109
android:layout_centerHorizontal="true"
110110
android:layout_marginBottom="12dp"
111-
android:background="@drawable/circle_divider"
111+
android:background="@drawable/qiscus_circle_divider"
112112
android:padding="48dp"
113113
android:src="@drawable/ic_download_big"
114114
android:tint="@color/qiscus_secondary_text"/>

qiscus-sdk/src/main/res/layout/item_chat_img_me.xml renamed to qiscus-sdk/src/main/res/layout/item_qiscus_chat_img_me.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
android:layout_marginLeft="64dp"
4343
android:layout_marginRight="19dp"
4444
android:layout_marginStart="64dp"
45-
android:background="@drawable/rounded_primary_light_chat_bg"
45+
android:background="@drawable/qiscus_rounded_primary_light_chat_bg"
4646
android:gravity="end"
4747
android:orientation="horizontal"
4848
android:padding="8dp">
@@ -82,7 +82,7 @@
8282
android:layout_width="192dp"
8383
android:layout_height="192dp"
8484
android:layout_margin="4dp"
85-
android:background="@drawable/round_dark_white"
85+
android:background="@drawable/qiscus_rounded_dark_white"
8686
android:padding="4dp">
8787

8888
<ImageView
@@ -114,7 +114,7 @@
114114
android:layout_alignParentBottom="true"
115115
android:layout_centerHorizontal="true"
116116
android:layout_marginBottom="12dp"
117-
android:background="@drawable/circle_divider"
117+
android:background="@drawable/qiscus_circle_divider"
118118
android:padding="48dp"
119119
android:src="@drawable/ic_download_big"
120120
android:tint="@color/qiscus_secondary_text"/>

qiscus-sdk/src/main/res/layout/item_chat_text.xml renamed to qiscus-sdk/src/main/res/layout/item_qiscus_chat_text.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
android:layout_marginLeft="19dp"
3737
android:layout_marginRight="64dp"
3838
android:layout_marginStart="19dp"
39-
android:background="@drawable/rounded_primary_chat_bg"
39+
android:background="@drawable/qiscus_rounded_primary_chat_bg"
4040
android:gravity="end"
4141
android:orientation="horizontal"
4242
android:padding="8dp">

qiscus-sdk/src/main/res/layout/item_chat_text_me.xml renamed to qiscus-sdk/src/main/res/layout/item_qiscus_chat_text_me.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
android:layout_marginLeft="64dp"
4242
android:layout_marginRight="19dp"
4343
android:layout_marginStart="64dp"
44-
android:background="@drawable/rounded_primary_light_chat_bg"
44+
android:background="@drawable/qiscus_rounded_primary_light_chat_bg"
4545
android:gravity="end"
4646
android:orientation="horizontal"
4747
android:padding="8dp">

0 commit comments

Comments
 (0)