java Android ripple无法获得所需的颜色
ripple xml是
<ripple xmlns:安卓="http://schemas.安卓.com/apk/res/安卓"
安卓:color="@color/baseWhite">
<item 安卓:drawable="@color/baseRed" />
</ripple>
文件名为四舍五入\u按钮\u离开\u提交。xml(v-21)
按钮xml是
<Button
安卓:text="Submit"
安卓:layout_width="match_parent"
安卓:layout_height="@dimen/edittext_button_height"
安卓:id="@+id/submitLeave"
安卓:textSize="@dimen/edittext_text_size"
安卓:background="@drawable/rounded_button_leave_submit"/>
如您所见,涟漪的默认基色为红色。波纹的颜色是白色的。然而,白色不是“清晰”的白色。这是一种白色和红色的混合色
在这里,baseWhite和baseRed只是白色(#ffffff)和红色(#d41217)的十六进制颜色代码。怎样才能得到清晰的白色
谢谢你抽出时间
共 (0) 个答案