许愿按钮点击中状态
This commit is contained in:
6
app/src/main/res/drawable/click_open_box_selector.xml
Normal file
6
app/src/main/res/drawable/click_open_box_selector.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/auto_open_box_pressed"/>
|
||||
<item android:state_focused="true" android:drawable="@drawable/auto_open_box_pressed"/>
|
||||
<item android:drawable="@drawable/auto_open_box_normal"/>
|
||||
</selector>
|
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@drawable/auto_open_honour_box_pressed"/>
|
||||
<item android:state_focused="true" android:drawable="@drawable/auto_open_honour_box_pressed"/>
|
||||
<item android:drawable="@drawable/auto_open_honour_box_normal"/>
|
||||
</selector>
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB |
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
@@ -198,7 +198,7 @@
|
||||
android:layout_marginEnd="25dp"
|
||||
android:layout_marginBottom="22dp"
|
||||
android:onClick="@{click}"
|
||||
android:src="@drawable/auto_open_box_normal"
|
||||
android:src="@drawable/click_open_box_selector"
|
||||
app:layout_constraintBottom_toBottomOf="@id/view_bg"
|
||||
app:layout_constraintEnd_toEndOf="@id/view_bg"
|
||||
app:layout_constraintStart_toStartOf="@id/view_bg"
|
||||
|
@@ -202,7 +202,7 @@
|
||||
android:layout_marginEnd="25dp"
|
||||
android:layout_marginBottom="22dp"
|
||||
android:onClick="@{click}"
|
||||
android:src="@drawable/auto_open_box"
|
||||
android:src="@drawable/click_open_honour_box_selector"
|
||||
app:layout_constraintBottom_toBottomOf="@id/view_bg"
|
||||
app:layout_constraintEnd_toEndOf="@id/view_bg"
|
||||
app:layout_constraintStart_toStartOf="@id/view_bg"
|
||||
|
Reference in New Issue
Block a user