- 2023-07-06直播平台制作,EditText实现“眼睛”效果
直播平台制作,EditText实现“眼睛”效果1.准备个EditText <EditText android:id="@+id/et_pwd" android:paddingRight="10dp" android:drawableRight="@drawable/lol_icon_eye_close" //默认关闭的眼睛,
- 2022-12-31Jetpack Compose 加载 Drawable
DrawablePainterAlibrarywhichprovidesawaytouseAndroid drawables asJetpackCompose Painters.ThislibraryattemptstosupportmostDrawableconfigu
- 2022-11-05Android 自定义TextView实现文字和图片居中显示
默认情况下,如果TextView的宽度超过文字的宽度,文字居中显示时,想要在文字的左边或者右边添加一个图片时,左边或者右边的文字就会默认以左边和右边开始排列,效果如下。如果想要