自定义轻提示
6
app/src/main/res/drawable/bg_toast.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color='@color/ic_blake'/>
|
||||
<corners android:radius="12dp"/>
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/check_ellipse.png
Normal file
|
After Width: | Height: | Size: 610 B |
BIN
app/src/main/res/drawable/close.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable/ellipse.png
Normal file
|
After Width: | Height: | Size: 585 B |
BIN
app/src/main/res/drawable/error_circle.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/drawable/fill.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable/open.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
app/src/main/res/drawable/search.png
Normal file
|
After Width: | Height: | Size: 449 B |
24
app/src/main/res/layout/layout_custom_toast.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_toast"
|
||||
android:orientation="vertical"
|
||||
android:padding="24dp"
|
||||
android:gravity="center">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_icon"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:contentDescription="@null"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="14sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -16,5 +16,6 @@
|
||||
<color name="blue">#03A9F4</color>
|
||||
<color name="bg_gray">#F7F7F7</color>
|
||||
<color name="setting_gray">#F3F3F3</color>
|
||||
<color name="ic_blake">#111111</color>
|
||||
|
||||
</resources>
|
||||