![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
edittext
星空同学
少胡思乱想,多造轮子。
展开
-
CoordinatorLayout,AppBarLayout中Edittext被键盘覆盖问题解决
<androidx.coordinatorlayout.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent"> <com.google.android.material.appbar.AppBarLayout a.原创 2021-07-15 17:51:28 · 624 阅读 · 0 评论 -
设置hint字体大小
在资源文件中。<string name="edittext_hint"><font size="15">Hint here!</font></string>布局中,通过@string/edittext_hint引用。原创 2016-07-11 15:52:47 · 814 阅读 · 0 评论 -
EditText.setText()无效
转载自:http://blog.csdn.net/learner_lps/article/details/52316878 感谢原博主。先说原因: 安卓会自动保存某些view的状态,旋转屏幕或打开一个活动后,onSaveInstanceState会保存了EditText的内容,然后在onCreate的时候把EditText设置成功了,但是随后会在->onRestoreInstanceState尝转载 2016-12-19 16:13:52 · 3415 阅读 · 1 评论