android - Soft Input pans view but not enough to show full editText -


i have complicated layout, @ bottom huge edittext. when click on keyboard open, slides enough show user typing (as user begins typing 1 line visible, if user goes multiple lines pans little more show 2 lines, etc). pan whole edittext (all blank space) visible.

<linearlayout         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:background="@color/white"         android:orientation="vertical">          <edittext             android:id="@+id/commentbox"             android:layout_width="fill_parent"             android:layout_height="100dp"             android:textsize="16sp"             android:layout_marginleft="6dp"             android:layout_margintop="4dp"             android:background="@color/transparent"             android:textcolor="@color/gray"             android:gravity="top"             android:inputtype="textmultiline|textcapsentences|textshortmessage|textautocorrect|textnosuggestions">         </edittext>     </linearlayout> 

been struggling couple days now, appreciate suggestions.

best way illustrate 3 images

this entire screen looks like

this entire screen looks like

this behavior right now

this behavior right now

this desired behavior

this desired behavior

hopefully images illustrate question. need figure out how make happen. way have been able force view pan right place setting, android:gravity bottom , in case text written @ bottom. however, weird user experience. need text in normal text box.

was able hack solution mimics looking for. put layout inside scrollview, set parameter adjustresize instead of adjustpan. , on click in edittext did

scrollview.postdelayed(new runnable() {                  public void run() {                      scrollview.scrollto(0, scrollview.getbottom());                  }              } , 250);  

would love find non-hacky way this, i've got.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -