Android - multiple EditText fields in window resize -
in 1 of views, have 3 edittext fields. first 2 single line, , third multline. i'm using android:windowsoftinputmode="statevisible|adjustresize"
third field collapses far small in portrait mode when ime comes , has focus.
is there option set minimum height force window scroll down accommodate third field?
i have tried setting android:minheight="20dip"
in xml file, has no effect.
the edittext in question looks like:
<edittext android:id="@+id/msgreplyarea" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="top" android:layout_weight="1" android:layout_marginleft="10dip" android:layout_marginright="10dip" android:layout_margintop="10px" android:inputtype="textcapsentences|textmultiline" android:imeoptions="flagnoenteraction" />
thanks.
android:minheight work, parent view needs wrapped in scollview
<scrollview android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" android:scrollbarstyle="outsideinset" android:fillviewport="true"> <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <edittext android:id="@+id/replyarea" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="top" android:singleline="false" android:layout_weight="1" android:layout_marginleft="10dip" android:layout_marginright="10dip" android:layout_margintop="10px" android:minheight="120dp" android:inputtype="textautocorrect|textcapsentences|textmultiline" android:imeoptions="flagnoenteraction" /> </linearlayout> </scrollview>
Comments
Post a Comment