android - Edittext in ListView lost cursor -


i have listview contains multi edittext. sometimes, when scroll , focus on edittext, cursor disappears although keyboard showing , can input character normally. cursor appears when put first character.

<edittext             android:id="@+id/et_nutri_lo"             android:background="@drawable/edit_text_corner"             android:paddingright="@dimen/et_corner_radius"             style="@android:style/textappearance.medium"             android:selectallonfocus="true"             android:layout_width="wrap_content"             android:layout_height="@dimen/btn_small_h"             android:layout_gravity="center_vertical"             android:layout_weight="1"             android:minems="3"             android:maxems="6"             android:gravity="right|bottom"             android:inputtype="numberdecimal"             android:filtertoucheswhenobscured="false"             /> 

do know what's wrong?

thanks

have chance set onfocuschangelistener? if yes, try following:

view.setonfocuschangelistener(new onfocuschangelistener() {     @override     public void onfocuschange(view view, boolean hasfocus) {         [your code here]         view.dispatchwindowfocuschanged(hasfocus); // fix text selection handle not disappearing     } }); 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -