File tree Expand file tree Collapse file tree
custom-views-androidx/src/main/java/com/ayvytr/customview/custom/text Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import android .view .MotionEvent ;
1313import android .view .inputmethod .EditorInfo ;
1414
15- import androidx .annotation .DrawableRes ;
16- import androidx .annotation .NonNull ;
17- import androidx .appcompat .widget .AppCompatEditText ;
18- import androidx .core .content .ContextCompat ;
19-
2015import com .ayvytr .customview .R ;
2116import com .ayvytr .customview .util .DensityUtil ;
2217import com .ayvytr .customview .util .DrawableUtil ;
2318import com .ayvytr .customview .util .ResUtil ;
2419
20+ import androidx .annotation .DrawableRes ;
21+ import androidx .annotation .NonNull ;
22+ import androidx .appcompat .widget .AppCompatEditText ;
23+ import androidx .core .content .ContextCompat ;
24+
2525/**
2626 * 点击图标显示/隐藏密码的EditText.
2727 *
@@ -54,7 +54,7 @@ public PasswordEditText(Context context) {
5454 }
5555
5656 public PasswordEditText (Context context , AttributeSet attrs ) {
57- this (context , attrs , R . attr . editTextStyle );
57+ this (context , attrs , 0 );
5858 }
5959
6060 public PasswordEditText (Context context , AttributeSet attrs , int defStyleAttr ) {
You can’t perform that action at this time.
0 commit comments