android - Multiline AutoCompleteTextView not accepting scrolling touch -
i created multiline autocompletetextview component inside activity main root scrollview (because activity contains lots of controls), , set max , min lines 4. loads text properly, when try scroll inside autocompletetextview, whole activity scrolls. here code of autocompletetextview:
<autocompletetextview android:id="@+id/txtdata" android:inputtype="textmultiline" android:lines="4" android:minlines="4" android:maxlines="4" android:gravity="top|left" android:textcolor="#000000" android:layout_below="@id/lbladdress" android:layout_height="wrap_content" android:layout_width="fill_parent" android:scrollbars="vertical" android:textsize="16sp" />
any idea should set keep scroll focus inside autocompletetextview?
try change dropdown height android:dropdownheight
this work when inside scrollview , autocompletetextview near top.
to focus try this
autocompletetextview.setonfocuschangelistener(new onfocuschangelistener() { public void onfocuschange(view v, boolean hasfocus) { if(hasfocus) { autocompletetextview.showdropdown(); } } });
Comments
Post a Comment