android - Make bottom of the screen appear above keyboard -


hi developing multiline edittext has 3 lines. , keyboard appears below cursor, want show whole 3 lines if i'm writing in first one. need way put bottom of view(screen/layout) on top of keyboard.

now use simple edittext 3 lines , flag multiline.

    <edittext         android:id="@+id/edittextmessage"         android:layout_width="0dip"         android:layout_height="match_parent"         android:layout_marginbottom="2dp"         android:layout_marginleft="10dp"         android:layout_weight="0.7"         android:background="@drawable/button_background"         android:ems="10"         android:gravity="top|left"         android:hint="message"         android:inputtype="textmultiline"         android:lines="3"         android:maxlength="140"         android:paddingleft="5dip"         android:paddingright="5dip"         android:paddingtop="5dip"         android:textcolorhint="@color/jlgreydarksend"         android:textsize="14sp"> 

you can try set android:windowsoftinputmode="adjustresize" activity.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -