Skip to content

Commit df7ed2e

Browse files
committed
Change notice icon
1 parent 81d96b3 commit df7ed2e

File tree

4 files changed

+34
-8
lines changed

4 files changed

+34
-8
lines changed

app/src/main/res/drawable/corner_radius_blue.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<gradient
5+
android:angle="45"
6+
android:startColor="@color/bg_blue"
7+
android:endColor="@color/c_blue"
8+
android:type="linear" />
9+
10+
<corners
11+
android:radius="3.5dp"/>
12+
</shape>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:width="24dp"
4+
android:height="24dp"
5+
android:viewportWidth="24"
6+
android:viewportHeight="24">
7+
8+
<path
9+
android:fillColor="@color/btn_icon_default"
10+
android:pathData="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" />
11+
</vector>

app/src/main/res/layout/template_notice.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
4+
xmlns:app="http://schemas.android.com/apk/res-auto"
45
android:id="@+id/llNotice"
56
android:layout_width="match_parent"
67
android:layout_height="wrap_content"
78
android:layout_marginTop="8dp"
89
android:layout_marginBottom="8dp"
9-
android:background="@drawable/corner_radius_gradient_blue"
10+
android:background="@drawable/corner_radius_gradient_blue_small"
1011
android:orientation="horizontal">
1112

13+
<ImageView
14+
android:layout_width="wrap_content"
15+
android:layout_height="wrap_content"
16+
android:layout_gravity="center"
17+
android:padding="8dp"
18+
app:tint="@color/txt_headline"
19+
app:srcCompat="@drawable/ic_info_notice" />
20+
1221
<TextView
1322
android:id="@+id/tvNotice"
1423
style="@style/ScalaLabel.Heading.Small"
1524
android:layout_width="0dp"
1625
android:layout_height="wrap_content"
1726
android:layout_weight="1"
1827
android:drawablePadding="8dp"
19-
android:drawableStart="@drawable/ic_info_white_24dp"
28+
android:layout_gravity="center"
2029
android:gravity="start|center_vertical"
2130
android:padding="8dp"
2231
android:textColor="@color/white"

0 commit comments

Comments
 (0)