Android Keyboard showing resize activity -


i'm trying resize activity when edittext become first responder , keyboard showing.

for have used android:windowsoftinputmode="adjustresize"in androidmanifest.xml. works great when keyboard showing can see previous activity in background. normal?

both activities have white background i'm wondering doing wrong?

my second activity xml:

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@color/white">      <textview         android:id="@+id/topview"         android:background="@color/hwmmaincolor"         android:textcolor="@color/white"         android:layout_width="match_parent"         android:layout_height="60dp"         android:padding="6dip"/>      <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"         android:id="@+id/mainlinearlayout"         android:orientation="vertical"         android:layout_width="match_parent"         android:layout_height="0dp"         android:layout_weight="1.0" />  </linearlayout> 

thanks


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -