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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:59:25+00:00 2026-05-28T17:59:25+00:00

I have never seen this before. I have a simple custom view that has

  • 0

I have never seen this before. I have a simple custom view that has an animated background, and on top of that view I’ve implemented the standard Android viewset. TextViews, EditTexts, ImageViews, etc…

When the soft keyboard is up and I am entering information everything works normally. When the keyboard is hidden, the views get messed up. Anyone seen this before? It is occurring on a Galaxy Nexus S, and all the code is standard implementation. Any settings or something I am missing? I have tried View.invalidate with no luck. The only way to fix the issue is to reload the view -which I find rather annoying!

Here is the code for the View I call, “Enroll”.

<?xml version="1.0" encoding="utf-8"?>

<!-- Intended for logging in or creating an account -->

<ImageView 
    android:id="@+id/fillininfo"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:scaleType="centerInside"
    android:background="@null"
    android:src="@drawable/friends_enroll_fillininfo"
/>

<ImageView 
    android:id="@+id/name"
    android:layout_below="@id/fillininfo"
    android:layout_width="wrap_content"
    android:layout_height="20dip"
    android:scaleType="centerInside"
    android:layout_centerHorizontal="true"
    android:background="@null"
    android:src="@drawable/name"
/>

<EditText
    android:id="@+id/friends_enroll_name"
    android:layout_marginLeft="5dip"
    android:layout_marginRight="5dip"
    android:layout_width="fill_parent"
    android:layout_height="30dip"
    android:layout_below="@id/name"
    android:hint="A name you go by..."
    android:inputType="textPersonName|textCapWords"
    android:gravity="center"
    android:textSize="16sp"
    android:maxLines="1"
    android:lines="1"
    android:singleLine="true"
    android:textColor="@color/white"
    android:textColorHighlight="@color/white"
    android:textColorHint="@color/white"
    android:textColorLink="@color/white"
    android:background="@drawable/textbox_background"

/>

<ImageView 
    android:id="@+id/email"
    android:layout_below="@id/friends_enroll_name"
    android:layout_width="wrap_content"
    android:layout_height="20dip"
    android:scaleType="centerInside"
    android:layout_centerHorizontal="true"
    android:background="@null"
    android:src="@drawable/email"
/>

<EditText
    android:id="@+id/friends_enroll_email"
    android:layout_marginLeft="5dip"
    android:layout_marginRight="5dip"
    android:layout_width="fill_parent"
    android:layout_height="30dip"
    android:layout_below="@id/email"
    android:hint="Your email address..."
    android:inputType="textEmailAddress"
    android:gravity="center"
    android:textSize="16sp"
    android:maxLines="1"
    android:lines="1"
    android:singleLine="true"
    android:textColor="@color/white"
    android:textColorHighlight="@color/white"
    android:textColorHint="@color/white"
    android:textColorLink="@color/white"
    android:background="@drawable/textbox_background"
/>

<RelativeLayout
    android:id="@+id/subscribed"
    android:layout_below="@id/friends_enroll_email"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_marginLeft="5dip"
    android:layout_marginRight="5dip"
    android:layout_marginTop="5dip"
    android:background="@null"
>
    <TextView
        android:id="@+id/subscribed_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:background="@null"
        android:layout_centerVertical="true"
        android:text="Email updates and product offers"
    />

    <CheckBox
        android:id="@+id/friends_enroll_issubscribed"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5dip"
        android:layout_toRightOf="@id/subscribed_text"
        android:checked="true"
        android:text=" "
    />

</RelativeLayout>

<ImageButton 
    android:id="@+id/send_confirmation"
    android:layout_width="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_height="40dip"
    android:layout_below="@id/subscribed"
    android:scaleType="centerInside"
    android:src="@drawable/button_send_confirmation"
    android:background="@null"
/>

<TextView 
    android:id="@+id/friends_enroll_msg"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/send_confirmation"
    android:textColor="@color/white"
    android:text=""
    android:singleLine="false"
    android:gravity="center"
    android:textSize="14sp"
/>

Views distorted after soft keyboard is minimized - android

Regards,

Bob

  • 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-28T17:59:26+00:00Added an answer on May 28, 2026 at 5:59 pm

    I answered this by setting the android:imeOptions in my layout’s XML to “actionDone”.

    The soft-keyboard was assuming “actionNext” causing the view to shift upwards distorting the view. With the “actionDone” specified the view no longer assumes another EditText.

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

Sidebar

Related Questions

I have never seen this before, the rows will be sequential but I have
I have seen this macro defined before but never really knew its purpose. Can
Apologies in advance but I have never seen this error before and don't know
I've been having a strange problem that I've never seen before. Now I have
I've never seen this error before, I have also never used arrayList before, I
I have encountered a problem that I have never seen before. Usually, when I
I have never seen a way to do this nicely, i would be interested
Never seen this before. Running the same query, 1 forces an index. Without the
I've never used Dreamweaver before, but I have some HTML that I am looking
I've never seen this happen before and I can't figure out what is causing

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.