提交 9de6cf21 编写于 作者: C chaychan

解决PowfulEditText右侧图标隐现逻辑错误

上级 e307cd19
......@@ -12,7 +12,6 @@
android:layout_height="wrap_content"
app:funcType="canClear"
android:hint="自带清除文本功能"
android:text="加空姐大赛"
/>
<com.chaychan.viewlib.PowerfulEditText
......
......@@ -131,10 +131,10 @@ public class PowerfulEditText extends EditText {
String content = getText().toString().trim();
if (!TextUtils.isEmpty(content)){
//初始化内容不为空,则不隐藏右侧图标
setRightIconVisible(false);
setRightIconVisible(true);
setSelection(content.length());
}else{
setRightIconVisible(true);//隐藏右侧图标
setRightIconVisible(false);//隐藏右侧图标
}
}else{
//如果不是清除功能,不隐藏右侧默认图标
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册