描述:新增备用支付按钮 按压效果
This commit is contained in:
parent
65e988ae4a
commit
0882c868df
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item
|
||||||
|
android:state_pressed="false"
|
||||||
|
android:drawable="@color/translate"/>
|
||||||
|
<item
|
||||||
|
android:state_pressed="true"
|
||||||
|
android:drawable="@color/black_262c46">
|
||||||
|
</item>
|
||||||
|
</selector>
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item
|
||||||
|
android:state_pressed="false"
|
||||||
|
android:drawable="@color/translate"/>
|
||||||
|
<item
|
||||||
|
android:state_pressed="true"
|
||||||
|
android:drawable="@color/black_141b21">
|
||||||
|
</item>
|
||||||
|
</selector>
|
||||||
|
|
@ -9,9 +9,10 @@
|
||||||
>
|
>
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
android:id="@+id/ivBack"
|
android:id="@+id/ivBack"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/dp_40"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/dp_40"
|
||||||
android:padding="@dimen/dp_10"
|
android:padding="5dp"
|
||||||
|
android:background="@drawable/press_effect_back"
|
||||||
app:srcCompat="@drawable/ic_s_gray_back"
|
app:srcCompat="@drawable/ic_s_gray_back"
|
||||||
/>
|
/>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
@ -44,6 +45,8 @@
|
||||||
android:id="@+id/ivAlipay"
|
android:id="@+id/ivAlipay"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
|
android:background="@drawable/press_effect"
|
||||||
|
android:padding="5dp"
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
app:srcCompat="@drawable/alipay" />
|
app:srcCompat="@drawable/alipay" />
|
||||||
|
|
||||||
|
|
@ -51,6 +54,8 @@
|
||||||
android:id="@+id/ivWechatPay"
|
android:id="@+id/ivWechatPay"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
|
android:background="@drawable/press_effect"
|
||||||
|
android:padding="5dp"
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
app:srcCompat="@drawable/wechat" />
|
app:srcCompat="@drawable/wechat" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
@ -87,7 +92,9 @@
|
||||||
android:id="@+id/ivQuickPayment"
|
android:id="@+id/ivQuickPayment"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
|
android:background="@drawable/press_effect"
|
||||||
android:layout_marginStart="20dp"
|
android:layout_marginStart="20dp"
|
||||||
|
android:padding="5dp"
|
||||||
app:srcCompat="@drawable/alipay" />
|
app:srcCompat="@drawable/alipay" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue