Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7627451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:27:40+00:00 2026-05-31T05:27:40+00:00

I have a ListView to display category items, below this, I have a control

  • 0

I have a ListView to display category items, below this, I have a control menu writen in a LinerLayout, and, also an EditText and go Button at the top of this app.

Everything is fine at the first running time. however, when I click the EditText for input, the menu bar is pulled up since the keyboard appear. Now, the order of the ListView has been changed.

example:
at beginning: 1 Meeting 2 Event 3 Schedule 4 Reminder
Later keyboard shows and everything pulled up: 1 Schedule 2 Reminder 3 Meeting 4 Event.

I also find that this problem will only happen when there is no enough space to keep showing the whole ListView.

I can’t solve this problem after I searched for long time on the internet.

This is my layout and my List Apdater

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout ...>
        <ListView
            android:id="@+id/items"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/widget53"/>

        <LinearLayout
            android:id="@+id/widget39"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true" >

            <ImageButton ../>

            <ImageButton ../>

            <ImageButton ../>
        </LinearLayout>

        <LinearLayout
            android:id="@+id/widget53"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true" >

            <Button ../>

            <EditText .. />
        </LinearLayout>
    </RelativeLayout>
//Write item on the screen
    lv = (ListView)findViewById(R.id.items);
            lv.setAdapter(indexadapter.getAdapter());
            lv.setTextFilterEnabled(true);
            lv.setOnItemClickListener(ItemClick);
//My list Adapter generate rows base on mData from database
    CategoryHolder CategoryHolder = null;
        if (convertView == null) {
            //getting view format
            CategoryHolder = new CategoryHolder();
            convertView = mInflater.inflate(R.layout.categoryshow, null);
            CategoryHolder.category=(TextView)convertView.findViewById(R.id.indexcategory);
        //setting tag for reuse;
            convertView.setTag(CategoryHolder);
        //setting text for each item;
        CategoryHolder.category.setText((String)mData.get(position).get("CATEGORY"));
        }else{
            CategoryHolder = (CategoryHolder)convertView.getTag();
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:27:41+00:00Added an answer on May 31, 2026 at 5:27 am

    in your AndroidManifest.xml file, in your <activity…> definition, include android:windowSoftInputMode="adjustPan" like so:

    <activity
        android:name=".ClassName"
        android:windowSoftInputMode="adjustPan" >
        ...
    </activity>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple requirement as mentioned below: A ListView or any control displays
I have a ListView subclass that display rows that each contain an EditText and
Microsoft I think this may be a bug. Have a ListView GridView to display
I have a custom listview which display an image, textview and radio button. I
I have a listview which displays emails with the following layout: email@address.com category //This
I have a ListView control in Asp.Net WebForms which display a set of elements,
I have a ListView where I would like to display things horizontally. That works
I have a ListView which is using a GridView to display a DataTable and
I have an ASP ListView, and have a very simple requirement to display numbers
i want to display some information in a listview using the GridView. i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.