我有一个用于描述的EditText。在输入过程中使字符数可见
在它下面,我有一个TextView,显示在EditText中输入的字符数。
例子:
的用户应该能够在输入时看到现场字符数,但在这一刻characted计数器由键盘隐藏:
我能做些什么来纠正?
这里是我的XML代码:
<EditText
android:id="@+id/MyDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:maxLength="500"
android:hint="Description" />
<TextView
android:id="@+id/MyDescriptionCharCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0/500"
android:layout_below="@id/MyDescription"
android:layout_marginTop="5dp"
android:layout_marginRight="3dp"
android:layout_marginEnd="3dp"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
父是一个RelativeLayout的。
刚刚发现这个修复后,它可以帮助你的http://计算器。 com/questions/27858987 /定位编辑文本键盘以上 –
谢谢,但它似乎并没有帮助我 –
你终于找到一个解决方案? –