feat: 登录界面美化,图层控制功能添加
This commit is contained in:
7
app/src/main/res/drawable/login_inputlayout_bg.xml
Normal file
7
app/src/main/res/drawable/login_inputlayout_bg.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#fff5f6fa" />
|
||||
<corners android:radius="40dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/ripple_btn_normal.xml
Normal file
6
app/src/main/res/drawable/ripple_btn_normal.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/ripple_color">
|
||||
<item android:drawable="@drawable/shape_btn_normal"/>
|
||||
</ripple>
|
||||
6
app/src/main/res/drawable/ripple_btn_press.xml
Normal file
6
app/src/main/res/drawable/ripple_btn_press.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="@color/ripple_color">
|
||||
<item android:drawable="@drawable/shape_btn_press"/>
|
||||
</ripple>
|
||||
8
app/src/main/res/drawable/selector_bg_default_button.xml
Normal file
8
app/src/main/res/drawable/selector_bg_default_button.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_enabled="false" android:drawable="@drawable/ripple_btn_press"></item>
|
||||
<item android:state_checked="true" android:drawable="@drawable/ripple_btn_press"/>
|
||||
<item android:state_pressed="true" android:drawable="@drawable/ripple_btn_press"/>
|
||||
<item android:state_selected="true" android:drawable="@drawable/ripple_btn_press"></item>
|
||||
<item android:drawable="@drawable/ripple_btn_normal"/>
|
||||
</selector>
|
||||
10
app/src/main/res/drawable/shape_btn_normal.xml
Normal file
10
app/src/main/res/drawable/shape_btn_normal.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<gradient android:type="linear"
|
||||
android:centerX="0.5"
|
||||
android:centerY="0.5"
|
||||
android:startColor="#ff6d0bbd"
|
||||
android:endColor="#ff445ff5" />
|
||||
<corners android:radius="30dp" />
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/shape_btn_press.xml
Normal file
8
app/src/main/res/drawable/shape_btn_press.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/colorPrimarySurface"></solid>
|
||||
<stroke android:color="@color/colorSecondary"></stroke>
|
||||
<corners android:radius="30dp" />
|
||||
</shape>
|
||||
Reference in New Issue
Block a user