1

I am using

android:uiOptions="splitActionBarWhenNarrow"

for Bottom Action Bar .

and this

 android:windowSoftInputMode="adjustResize"

for adjusting view when soft keypad appears . But problem is that when keypad opens bottom action bar goes upon keypad like in figure.I want this at bottom even when keypad open.If I don't use "adjustResize" it remains at bottom but when keypad open my view is not scrollable, I can't see whole view.I want both the things means Bottom action bar should remain at bottom and view should remains scrollable .

Any help will be appreciated.Thanks .

<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:map="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/action_bar"
        android:layout_alignParentTop="true" >

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"
            tools:context=".AddScreen" >

            <View
                android:layout_width="0dp"
                android:layout_height="10dp" />

            <EditText
                android:id="@+id/add_et_task_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:nextFocusDown="@+id/add_et_task_remarks"
                android:hint="Task Name" />

            <EditText
                android:id="@+id/add_et_task_remarks"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp"
                android:hint="Remarks"
                android:inputType="textMultiLine"
                android:lines="3" />

            <View
                android:layout_width="0dp"
                android:layout_height="10dp" />

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:background="#b2b2b2" />


        </LinearLayout>
    </ScrollView>



</RelativeLayout>

enter image description here

enter image description here

keshav
  • 3,235
  • 1
  • 16
  • 22

2 Answers2

3

If its full screen,

then just

Instead of this line

@android:style/Theme.Holo.NoActionBar.FullScreen in menefesto

put this line

@android:style/Theme.Holo.NoActionBar

and I am sure its gonna solve your problem

OR

PUT

IN ACTIVITY TAG PUT android:windowSoftInputMode="adjustPan"

Thanks ,

Sal

Alexander Zaldostanov
  • 2,907
  • 4
  • 30
  • 39
0

Your Problem seems to be same as like question asked here and here Check this out.

Community
  • 1
  • 1
Zubair Ahmed
  • 2,857
  • 2
  • 27
  • 47
  • Thanks for answer but those link couldn't help. Actually here problem is Bottom Action Bar which I want to fix at bottom always. – keshav Dec 12 '13 at 11:12
  • you didn't show your actionBar code in xml. Have you tried `android:layout_alignParentBottom="true"` within actionbar tag? – Zubair Ahmed Dec 12 '13 at 11:15
  • That action bar is default action bar which is set as bottom action bar here. I am not adding any view for that .Views are created by adding menu items in menu xml. – keshav Dec 12 '13 at 11:18