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 7995949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:34:19+00:00 2026-06-04T14:34:19+00:00

How to resize the EditText when the softkeyboard gets displayed? For compatibility reasons(different screen

  • 0

How to resize the EditText when the softkeyboard gets displayed? For compatibility reasons(different screen sizes and densities), can we resize the EditText to a value such that it is “20dp” above the softkeyboard or the whole screen becomes scrollable? Read many posts on SE about using nut they didn’t work for me.

The main.xml file is below:

<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1.04" >
  <Button
            android:id="@+id/Save"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_marginRight="15dp"
            android:layout_marginTop="16dp"
            android:layout_marginBottom="20dp"
            android:textColor="#ffffff"
            android:text="@string/SaveButton" />

        <EditText
            android:id="@+id/NoteTextBox"
            android:layout_width="fill_parent"
            android:layout_height="180dp"
            android:layout_alignParentLeft="true"
            android:layout_alignParentRight="true"
            android:layout_below="@+id/Save"
            android:layout_marginTop="20dp"
            android:ems="10"
            android:textColor="#ffffff"
            android:inputType="text"
            android:singleLine="false" >

            <requestFocus />

        </EditText>

    </RelativeLayout>
  • 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-06-04T14:34:21+00:00Added an answer on June 4, 2026 at 2:34 pm

    Try to use android:imeOptions="flagNoExtractUi" it may help your.
    More about imeOptions you can read here

    Hope it helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So my website can resize based on screen size, but when I implemented a
I have a layout with a ListView that contains EditText objects that can requestFocus()
How can I resize a windows form without hiding controls that are positioned outside
I need to resize/crop images in different resolutions for Android App. I know, that
I'm trying to resize an image in Silverlight 3 that has been submitted by
So I need to resize my sprites with respect to the phones screen size,
I have two resize functions that I would like to perform one after the
I want to resize images that are bigger than the window, but I keep
I would to resize a UITableView and slide up a UIView that contains a
I am trying to resize an image that I have uploaded with a form.

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.