android - Scroll inside an EditText which is in a ScrollView -
this question has answer here:
- android: viewpager , horizontalscrollview 11 answers
is possible scroll inside edittext in scrollview?
<scrollview android:layout_width="fill_parent" android:layout_height="wrap_content"> <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <!-- scroll inside edittext --> <edittext android:id="@+id/et_scrollhere" android:lines="6" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="voorbeeld" android:layout_margin="5dp" android:scrollbars="vertical" android:inputtype="textmultiline"/> </linearlayout> </scrollview> or possible have edittext embedded in keyboard in portrait mode? whatsapp, edittext scrollable.
edittext dwedit = (edittext) findviewbyid(r.id.dwedit); dwedit.setontouchlistener(new ontouchlistener() { public boolean ontouch(view view, motionevent event) { // todo auto-generated method stub if (view.getid() ==r.id.dwedit) { view.getparent().requestdisallowintercepttouchevent(true); switch (event.getaction()&motionevent.action_mask){ case motionevent.action_up: view.getparent().requestdisallowintercepttouchevent(false); break; } } return false; } }); and in xml file
<edittext android:id="@+id/dwedit" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minlines="10" android:scrollbarstyle="insideinset" android:scrollbars="vertical" android:overscrollmode="always" android:inputtype="textcapsentences"> </edittext> i hope ..
Comments
Post a Comment