in manifest as well as in Java code

But none of thing worked for me. [code] <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/newl" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="145dp" android:drawablePadding="8dp" android:layout_gravity="center_horizontal" android:src="@drawable/ic_clock" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Timetracker" android:fontFamily="LucidaGrande" android:textSize="30dp" android:textAlignment="center" android:layout_marginTop="15dp" android:layout_gravity="center_horizontal" android:id="@+id/tt" android:textColor="#FFFFFF" android:layout_centerHorizontal="true" /> <LinearLayout android:layout_below="@+id/tt" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="30dp" > <ImageView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ico_user" android:layout_centerVertical="true" /> <Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroundTint="#FFFFFF" android:drawablePadding="12dp" android:textSize="15dp" android:layout_marginRight="45dp" android:fontFamily="Sans Serif" android:layout_centerInParent="true" android:textColor="#FFFFFF" android:background="@android:color/transparent" android:id="@+id/spinner2" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_arrow_drop_down_black_24dp" android:layout_alignParentRight="true" android:layout_centerVertical="true"/> </RelativeLayout> <View android:layout_below="@+id/rel" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/ic_ico_lock" android:drawablePadding="12dp" android:layout_marginTop="30dp" android:layout_below="@+id/rel" android:layout_marginRight="7dp" android:layout_marginBottom="10dp" android:layout_marginLeft="12dp" android:hint="Password" android:background="@android:color/transparent" android:textColorHint="#FFFFFF" android:textSize="20dp" android:textColor="#FFFFFF" android:id="@+id/editText" android:inputType="textPassword" android:backgroundTint="#FFFFFF" /> <View android:layout_below="@+id/editText" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:layout_below="@+id/editText" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:background="#FFFFFF" android:text="LOG IN" android:id="@+id/log" android:textColor="#D04045"/> </LinearLayout> </LinearLayout> </ScrollView>[/code]">
in manifest as well as in Java code

But none of thing worked for me. [code] <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/newl" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="145dp" android:drawablePadding="8dp" android:layout_gravity="center_horizontal" android:src="@drawable/ic_clock" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Timetracker" android:fontFamily="LucidaGrande" android:textSize="30dp" android:textAlignment="center" android:layout_marginTop="15dp" android:layout_gravity="center_horizontal" android:id="@+id/tt" android:textColor="#FFFFFF" android:layout_centerHorizontal="true" /> <LinearLayout android:layout_below="@+id/tt" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="30dp" > <ImageView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ico_user" android:layout_centerVertical="true" /> <Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroundTint="#FFFFFF" android:drawablePadding="12dp" android:textSize="15dp" android:layout_marginRight="45dp" android:fontFamily="Sans Serif" android:layout_centerInParent="true" android:textColor="#FFFFFF" android:background="@android:color/transparent" android:id="@+id/spinner2" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_arrow_drop_down_black_24dp" android:layout_alignParentRight="true" android:layout_centerVertical="true"/> </RelativeLayout> <View android:layout_below="@+id/rel" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/ic_ico_lock" android:drawablePadding="12dp" android:layout_marginTop="30dp" android:layout_below="@+id/rel" android:layout_marginRight="7dp" android:layout_marginBottom="10dp" android:layout_marginLeft="12dp" android:hint="Password" android:background="@android:color/transparent" android:textColorHint="#FFFFFF" android:textSize="20dp" android:textColor="#FFFFFF" android:id="@+id/editText" android:inputType="textPassword" android:backgroundTint="#FFFFFF" /> <View android:layout_below="@+id/editText" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:layout_below="@+id/editText" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:background="#FFFFFF" android:text="LOG IN" android:id="@+id/log" android:textColor="#D04045"/> </LinearLayout> </LinearLayout> </ScrollView>[/code]">
in manifest as well as in Java code

But none of thing worked for me. [code] <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/newl" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="145dp" android:drawablePadding="8dp" android:layout_gravity="center_horizontal" android:src="@drawable/ic_clock" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Timetracker" android:fontFamily="LucidaGrande" android:textSize="30dp" android:textAlignment="center" android:layout_marginTop="15dp" android:layout_gravity="center_horizontal" android:id="@+id/tt" android:textColor="#FFFFFF" android:layout_centerHorizontal="true" /> <LinearLayout android:layout_below="@+id/tt" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="30dp" > <ImageView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ico_user" android:layout_centerVertical="true" /> <Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroundTint="#FFFFFF" android:drawablePadding="12dp" android:textSize="15dp" android:layout_marginRight="45dp" android:fontFamily="Sans Serif" android:layout_centerInParent="true" android:textColor="#FFFFFF" android:background="@android:color/transparent" android:id="@+id/spinner2" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_arrow_drop_down_black_24dp" android:layout_alignParentRight="true" android:layout_centerVertical="true"/> </RelativeLayout> <View android:layout_below="@+id/rel" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/ic_ico_lock" android:drawablePadding="12dp" android:layout_marginTop="30dp" android:layout_below="@+id/rel" android:layout_marginRight="7dp" android:layout_marginBottom="10dp" android:layout_marginLeft="12dp" android:hint="Password" android:background="@android:color/transparent" android:textColorHint="#FFFFFF" android:textSize="20dp" android:textColor="#FFFFFF" android:id="@+id/editText" android:inputType="textPassword" android:backgroundTint="#FFFFFF" /> <View android:layout_below="@+id/editText" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:layout_below="@+id/editText" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:background="#FFFFFF" android:text="LOG IN" android:id="@+id/log" android:textColor="#D04045"/> </LinearLayout> </LinearLayout> </ScrollView>[/code]">
I have login page with Email Id ,Password & LOGIN button. Right now when any one of the Edit Text gain focus then system keyboard hides my Login button. I want to push my layout above when keyboard appears keeping LOGIN button above of keyboard.

P.S I've tried all solution like adjust Pan|adjust Resize, adjust Pan,adjust Resize"

in manifest as well as in Java code

But none of thing worked for me. [code] <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:id="@+id/newl" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="145dp" android:drawablePadding="8dp" android:layout_gravity="center_horizontal" android:src="@drawable/ic_clock" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Timetracker" android:fontFamily="LucidaGrande" android:textSize="30dp" android:textAlignment="center" android:layout_marginTop="15dp" android:layout_gravity="center_horizontal" android:id="@+id/tt" android:textColor="#FFFFFF" android:layout_centerHorizontal="true" /> <LinearLayout android:layout_below="@+id/tt" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="30dp" > <ImageView android:layout_marginLeft="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ico_user" android:layout_centerVertical="true" /> <Spinner android:layout_width="match_parent" android:layout_height="wrap_content" android:backgroundTint="#FFFFFF" android:drawablePadding="12dp" android:textSize="15dp" android:layout_marginRight="45dp" android:fontFamily="Sans Serif" android:layout_centerInParent="true" android:textColor="#FFFFFF" android:background="@android:color/transparent" android:id="@+id/spinner2" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_arrow_drop_down_black_24dp" android:layout_alignParentRight="true" android:layout_centerVertical="true"/> </RelativeLayout> <View android:layout_below="@+id/rel" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/ic_ico_lock" android:drawablePadding="12dp" android:layout_marginTop="30dp" android:layout_below="@+id/rel" android:layout_marginRight="7dp" android:layout_marginBottom="10dp" android:layout_marginLeft="12dp" android:hint="Password" android:background="@android:color/transparent" android:textColorHint="#FFFFFF" android:textSize="20dp" android:textColor="#FFFFFF" android:id="@+id/editText" android:inputType="textPassword" android:backgroundTint="#FFFFFF" /> <View android:layout_below="@+id/editText" android:layout_width="match_parent" android:background="#FFF" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="1dp"/> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:layout_below="@+id/editText" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:background="#FFFFFF" android:text="LOG IN" android:id="@+id/log" android:textColor="#D04045"/> </LinearLayout> </LinearLayout> </ScrollView>[/code]


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir