我使用android設計庫版本25.1.1中的TextInputLayout
。用下面的代碼:TextInputLayout password使用圓角覆蓋
<android.support.design.widget.TextInputLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
local:passwordToggleEnabled="true"
local:hintEnabled="false">
<android.support.design.widget.TextInputEditText
android:id="@+id/confirmationEditText"
android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
但是當按下密碼切換圖標,其漣漪效應爲TextInput的背景之上得出:
如何設置圓角半徑爲passwordToggle
?我可以引用它的現有背景,並用所需的屬性「包裝」它(如何查找切換使用的默認可繪製路徑)?