Skip to content

Commit 7a26cf9

Browse files
committed
Add prefix to assets files
1 parent fb08b01 commit 7a26cf9

File tree

116 files changed

+42
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+42
-42
lines changed

qiscus-sdk/src/main/java/com/qiscus/sdk/data/model/QiscusChatConfig.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ public class QiscusChatConfig {
2929
private DateFormatter timeFormat = QiscusDateUtil::toHour;
3030
private String emptyRoomTitle = "Welcome!";
3131
private String emptyRoomSubtitle = "Lets start conversation";
32-
private int emptyRoomImageResource = R.drawable.ic_chat_empty;
32+
private int emptyRoomImageResource = R.drawable.ic_qiscus_chat_empty;
3333
private String messageFieldHint = "Type a message…";
34-
private int addPictureIcon = R.drawable.ic_add_image;
35-
private int takePictureIcon = R.drawable.ic_pick_picture;
36-
private int addFileIcon = R.drawable.ic_add_file;
37-
private int sendActiveIcon = R.drawable.ic_send_on;
38-
private int sendInactiveIcon = R.drawable.ic_send_off;
34+
private int addPictureIcon = R.drawable.ic_qiscus_add_image;
35+
private int takePictureIcon = R.drawable.ic_qiscus_pick_picture;
36+
private int addFileIcon = R.drawable.ic_qiscus_add_file;
37+
private int sendActiveIcon = R.drawable.ic_qiscus_send_on;
38+
private int sendInactiveIcon = R.drawable.ic_qiscus_send_off;
3939
private int[] swipeRefreshColorScheme = new int[]{R.color.qiscus_primary, R.color.qiscus_accent};
40-
private int notificationSmallIcon = R.drawable.ic_chat;
41-
private int notificationBigIcon = R.drawable.ic_chat;
40+
private int notificationSmallIcon = R.drawable.ic_qiscus_chat;
41+
private int notificationBigIcon = R.drawable.ic_qiscus_chat;
4242
private NotificationTitleHandler notificationTitleHandler = QiscusComment::getSender;
4343
private NotificationClickListener notificationClickListener =
4444
(context, qiscusComment) -> Qiscus.buildChatWith(qiscusComment.getSenderEmail())

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ private void setUpDownloadIcon(QiscusComment qiscusComment) {
181181
if (downloadIcon != null) {
182182
if (qiscusComment.isImage()) {
183183
if (qiscusComment.getState() == QiscusComment.STATE_FAILED || qiscusComment.getState() == QiscusComment.STATE_SENDING) {
184-
downloadIcon.setImageResource(R.drawable.ic_upload_big);
184+
downloadIcon.setImageResource(R.drawable.ic_qiscus_upload_big);
185185
} else {
186-
downloadIcon.setImageResource(R.drawable.ic_download_big);
186+
downloadIcon.setImageResource(R.drawable.ic_qiscus_download_big);
187187
}
188188
} else {
189189
if (qiscusComment.getState() == QiscusComment.STATE_FAILED || qiscusComment.getState() == QiscusComment.STATE_SENDING) {
190-
downloadIcon.setImageResource(R.drawable.ic_upload);
190+
downloadIcon.setImageResource(R.drawable.ic_qiscus_upload);
191191
} else {
192-
downloadIcon.setImageResource(R.drawable.ic_download);
192+
downloadIcon.setImageResource(R.drawable.ic_qiscus_download);
193193
}
194194
}
195195
}
@@ -276,7 +276,7 @@ private void showMyImage(final QiscusComment qiscusComment) {
276276
thumbnail.setVisibility(View.VISIBLE);
277277
Glide.with(thumbnail.getContext())
278278
.load(new File(qiscusComment.getAttachmentUri().toString()))
279-
.error(R.drawable.ic_img)
279+
.error(R.drawable.ic_qiscus_img)
280280
.into(thumbnail);
281281
}
282282
} else {
@@ -304,7 +304,7 @@ private void showImage(File file) {
304304
if (thumbnail != null) {
305305
Glide.with(thumbnail.getContext())
306306
.load(file)
307-
.error(R.drawable.ic_img)
307+
.error(R.drawable.ic_qiscus_img)
308308
.listener(new RequestListener<File, GlideDrawable>() {
309309
@Override
310310
public boolean onException(Exception e, File model, Target<GlideDrawable> target, boolean isFirstResource) {
@@ -336,16 +336,16 @@ private void showIconReadOrNot(QiscusComment qiscusComment) {
336336
failedToSendMessageColor : rightBubbleTimeColor);
337337
switch (qiscusComment.getState()) {
338338
case QiscusComment.STATE_SENDING:
339-
iconRead.setImageResource(R.drawable.ic_info_time);
339+
iconRead.setImageResource(R.drawable.ic_qiscus_info_time);
340340
break;
341341
case QiscusComment.STATE_ON_QISCUS:
342-
iconRead.setImageResource(R.drawable.ic_sending);
342+
iconRead.setImageResource(R.drawable.ic_qiscus_sending);
343343
break;
344344
case QiscusComment.STATE_ON_PUSHER:
345-
iconRead.setImageResource(R.drawable.ic_read);
345+
iconRead.setImageResource(R.drawable.ic_qiscus_read);
346346
break;
347347
case QiscusComment.STATE_FAILED:
348-
iconRead.setImageResource(R.drawable.ic_sending_failed);
348+
iconRead.setImageResource(R.drawable.ic_qiscus_sending_failed);
349349
break;
350350
}
351351
}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
android:layout_width="224dp"
2020
android:layout_height="wrap_content"
2121
android:layout_gravity="center"
22-
android:src="@drawable/ic_chat_empty"/>
22+
android:src="@drawable/ic_qiscus_chat_empty"/>
2323

2424
<TextView
2525
android:id="@+id/empty_chat_title"
@@ -119,13 +119,13 @@
119119
android:layout_marginLeft="8dp"
120120
android:layout_marginRight="8dp"
121121
android:layout_marginStart="8dp"
122-
android:background="@drawable/bt_selector_grey"
122+
android:background="@drawable/bt_qiscus_selector_grey"
123123
android:paddingEnd="2dp"
124124
android:paddingLeft="2dp"
125125
android:paddingRight="2dp"
126126
android:paddingStart="2dp"
127127
android:paddingTop="2dp"
128-
android:src="@drawable/ic_add_image"/>
128+
android:src="@drawable/ic_qiscus_add_image"/>
129129

130130
<ImageView
131131
android:id="@+id/button_pick_picture"
@@ -136,13 +136,13 @@
136136
android:layout_marginLeft="8dp"
137137
android:layout_marginRight="8dp"
138138
android:layout_marginStart="8dp"
139-
android:background="@drawable/bt_selector_grey"
139+
android:background="@drawable/bt_qiscus_selector_grey"
140140
android:paddingEnd="1dp"
141141
android:paddingLeft="1dp"
142142
android:paddingRight="1dp"
143143
android:paddingStart="1dp"
144144
android:paddingTop="2dp"
145-
android:src="@drawable/ic_pick_picture"/>
145+
android:src="@drawable/ic_qiscus_pick_picture"/>
146146

147147
<ImageView
148148
android:id="@+id/button_add_file"
@@ -153,13 +153,13 @@
153153
android:layout_marginLeft="8dp"
154154
android:layout_marginRight="8dp"
155155
android:layout_marginStart="8dp"
156-
android:background="@drawable/bt_selector_grey"
156+
android:background="@drawable/bt_qiscus_selector_grey"
157157
android:paddingEnd="2dp"
158158
android:paddingLeft="2dp"
159159
android:paddingRight="1dp"
160160
android:paddingStart="1dp"
161161
android:paddingTop="2dp"
162-
android:src="@drawable/ic_add_file"/>
162+
android:src="@drawable/ic_qiscus_add_file"/>
163163

164164
<RelativeLayout
165165
android:layout_width="0dp"
@@ -175,7 +175,7 @@
175175
android:layout_marginBottom="6dp"
176176
android:layout_marginEnd="8dp"
177177
android:layout_marginRight="8dp"
178-
android:src="@drawable/ic_send_off"/>
178+
android:src="@drawable/ic_qiscus_send_off"/>
179179

180180
</RelativeLayout>
181181

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
@@ -24,7 +24,7 @@
2424
android:layout_alignTop="@+id/message"
2525
android:layout_marginLeft="8dp"
2626
android:layout_marginStart="8dp"
27-
android:src="@drawable/ic_arrow_bubble_primary"
27+
android:src="@drawable/ic_qiscus_arrow_bubble_primary"
2828
android:tint="@color/qiscus_primary"/>
2929

3030
<RelativeLayout
@@ -55,7 +55,7 @@
5555
android:layout_width="30dp"
5656
android:layout_height="30dp"
5757
android:layout_centerVertical="true"
58-
android:src="@drawable/ic_file"
58+
android:src="@drawable/ic_qiscus_file"
5959
android:tint="@color/qiscus_divider"/>
6060

6161
<TextView
@@ -84,7 +84,7 @@
8484
android:layout_marginStart="10dp"
8585
android:background="@drawable/qiscus_circle_divider"
8686
android:padding="4dp"
87-
android:src="@drawable/ic_download"
87+
android:src="@drawable/ic_qiscus_download"
8888
android:tint="@color/qiscus_secondary_text"
8989
android:visibility="visible"/>
9090

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
@@ -27,7 +27,7 @@
2727
android:layout_marginEnd="8dp"
2828
android:layout_marginRight="8dp"
2929
android:scaleType="fitStart"
30-
android:src="@drawable/ic_arrow_bubble_primary_light"
30+
android:src="@drawable/ic_qiscus_arrow_bubble_primary_light"
3131
android:tint="@color/qiscus_primary_light"/>
3232

3333
<RelativeLayout
@@ -60,7 +60,7 @@
6060
android:layout_width="30dp"
6161
android:layout_height="30dp"
6262
android:layout_centerVertical="true"
63-
android:src="@drawable/ic_file"
63+
android:src="@drawable/ic_qiscus_file"
6464
android:tint="@color/qiscus_divider"/>
6565

6666
<TextView
@@ -89,7 +89,7 @@
8989
android:layout_marginStart="10dp"
9090
android:background="@drawable/qiscus_circle_divider"
9191
android:padding="4dp"
92-
android:src="@drawable/ic_download"
92+
android:src="@drawable/ic_qiscus_download"
9393
android:tint="@color/qiscus_secondary_text"
9494
android:visibility="visible"/>
9595

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
android:layout_alignTop="@+id/message"
2525
android:layout_marginLeft="8dp"
2626
android:layout_marginStart="8dp"
27-
android:src="@drawable/ic_arrow_bubble_primary"
27+
android:src="@drawable/ic_qiscus_arrow_bubble_primary"
2828
android:tint="@color/qiscus_primary"/>
2929

3030
<RelativeLayout
@@ -68,7 +68,7 @@
6868
android:layout_alignStart="@+id/holder"
6969
android:layout_alignTop="@+id/holder"
7070
android:layout_centerHorizontal="true"
71-
android:src="@drawable/bg_frame_primary"
71+
android:src="@drawable/bg_qiscus_frame_primary"
7272
android:tint="@color/qiscus_primary"
7373
android:visibility="visible"/>
7474

@@ -85,7 +85,7 @@
8585
android:layout_width="24dp"
8686
android:layout_height="24dp"
8787
android:layout_margin="4dp"
88-
android:src="@drawable/ic_img"
88+
android:src="@drawable/ic_qiscus_img"
8989
android:tint="@color/qiscus_divider"/>
9090

9191
<TextView
@@ -110,7 +110,7 @@
110110
android:layout_marginBottom="12dp"
111111
android:background="@drawable/qiscus_circle_divider"
112112
android:padding="48dp"
113-
android:src="@drawable/ic_download_big"
113+
android:src="@drawable/ic_qiscus_download_big"
114114
android:tint="@color/qiscus_secondary_text"/>
115115

116116
<com.github.lzyzsd.circleprogress.CircleProgress

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
android:layout_marginEnd="8dp"
2828
android:layout_marginRight="8dp"
2929
android:scaleType="fitStart"
30-
android:src="@drawable/ic_arrow_bubble_primary_light"
30+
android:src="@drawable/ic_qiscus_arrow_bubble_primary_light"
3131
android:tint="@color/qiscus_primary_light"/>
3232

3333
<RelativeLayout
@@ -73,7 +73,7 @@
7373
android:layout_alignStart="@+id/holder"
7474
android:layout_alignTop="@+id/holder"
7575
android:layout_centerHorizontal="true"
76-
android:src="@drawable/bg_frame_primary_light"
76+
android:src="@drawable/bg_qiscus_frame_primary_light"
7777
android:tint="@color/qiscus_primary_light"
7878
android:visibility="visible"/>
7979

@@ -90,7 +90,7 @@
9090
android:layout_width="24dp"
9191
android:layout_height="24dp"
9292
android:layout_margin="4dp"
93-
android:src="@drawable/ic_img"
93+
android:src="@drawable/ic_qiscus_img"
9494
android:tint="@color/qiscus_divider"/>
9595

9696
<TextView
@@ -116,7 +116,7 @@
116116
android:layout_marginBottom="12dp"
117117
android:background="@drawable/qiscus_circle_divider"
118118
android:padding="48dp"
119-
android:src="@drawable/ic_download_big"
119+
android:src="@drawable/ic_qiscus_download_big"
120120
android:tint="@color/qiscus_secondary_text"/>
121121

122122
</RelativeLayout>

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
@@ -23,7 +23,7 @@
2323
android:layout_alignTop="@+id/message"
2424
android:layout_marginLeft="8dp"
2525
android:layout_marginStart="8dp"
26-
android:src="@drawable/ic_arrow_bubble_primary"
26+
android:src="@drawable/ic_qiscus_arrow_bubble_primary"
2727
android:tint="@color/qiscus_primary"/>
2828

2929
<org.apmem.tools.layouts.FlowLayout

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
@@ -26,7 +26,7 @@
2626
android:layout_marginEnd="8dp"
2727
android:layout_marginRight="8dp"
2828
android:scaleType="fitStart"
29-
android:src="@drawable/ic_arrow_bubble_primary_light"
29+
android:src="@drawable/ic_qiscus_arrow_bubble_primary_light"
3030
android:tint="@color/qiscus_primary_light"/>
3131

3232
<org.apmem.tools.layouts.FlowLayout

0 commit comments

Comments
 (0)