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

  • Home
  • SEARCH
  • 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 6553303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:33:57+00:00 2026-05-25T12:33:57+00:00

This is the Screen Shot of my View: Here Previous, Reply and Next button

  • 0

This is the Screen Shot of my View:
enter image description here

Here Previous, Reply and Next button is on the RelativeLayout. Right now i have set the Topmargin of that relativelayout. I want to set as like if the default keyboard is apper then that layout should be on the uper side of the keyboard, and if the keyboard is disapper then that layout should be goes to the Bottom of the Screen.

the Code for that view is as below :

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

    <Button
        android:id="@+id/returnToSoundTest"
        android:layout_width="60dip"
        android:layout_height="20dip"
        android:text="Sound Test"
        android:textColor="#ffffff"
        android:layout_marginRight="3dip"
        android:layout_alignParentLeft="true"
        android:layout_centerVertical="true"
        android:background="@drawable/glossy_button_blank_black_rectangle"
        >
    </Button>

    <TextView 
        android:id="@+id/heading"
        android:text="test_name"
        android:layout_height="fill_parent"
        android:layout_width="fill_parent"
        android:gravity="center"

        android:textColor="#FFFFFF"
        android:textSize="28dip"
        >
    </TextView>
    <Button
        android:id="@+id/exit"
        android:layout_width="60dip"
        android:layout_height="20dip"
        android:text="Exit"
        android:textColor="#ffffff"
        android:layout_marginLeft="3dip"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:background="@drawable/glossy_button_blank_black_rectangle"
        >
    </Button>

</RelativeLayout>
<!-- Header Part End -->
<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center_horizontal"
    android:layout_marginTop="45dip">
<!-- ++++++++++++++ EXTRA BUTTON +++++++++++++++++++++++++ -->
            <com.quiz.spellingquiz.MyButton
                    android:id="@+id/deleteall"
                    android:layout_width="80dip"
                    android:layout_height="wrap_content"
                    android:text="Deleteall"
                    android:textSize="22dip"
                    android:textColor="#ffffff"

                    android:background="@drawable/btn_home_continue"/>


            <com.quiz.spellingquiz.MyButton
                    android:id="@+id/showall"
                    android:layout_width="80dip"
                    android:layout_height="wrap_content"
                    android:text="Show all"
                    android:textSize="22dip"
                    android:textColor="#ffffff"
                    android:layout_alignParentRight="true"
                    android:background="@drawable/btn_home_continue"/>
        <!-- ++++++++++++++ EXTRA BUTTON +++++++++++++++++++++++++ -->
    <LinearLayout 
        android:id="@+id/mainPart"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:orientation="vertical"
        android:layout_marginTop="35dip"
        android:padding="15dip">

        <LinearLayout
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:layout_marginLeft="20dip"
            android:layout_marginRight="20dip"
            android:orientation="vertical">
            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/enter_word_text"
                    android:text="Enter word"
                    android:gravity="center_horizontal"
                    android:textColor="#000000"
                    android:textSize="22dip"
                    android:layout_alignParentLeft="true"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:layout_marginBottom="4dip"/>

                <TextView
                    android:id="@+id/question_number"
                    android:text="Question of "
                    android:gravity="center_horizontal"
                    android:textColor="#000000"
                    android:textSize="22dip"
                    android:layout_alignParentRight="true"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:layout_marginBottom="4dip"/>
            </RelativeLayout>   

            <EditText
                android:id="@+id/answer_word"
                android:focusable="true"
                android:layout_height="40dip"
                android:layout_width="fill_parent"
                android:hint="test word"
                android:layout_gravity="center_vertical"
                android:layout_marginBottom="3dip"
                android:textSize="15dip">
                </EditText> 
            <RelativeLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">
            </RelativeLayout>

        </LinearLayout>         

    </LinearLayout>
    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="horizontal" 
        android:layout_width="fill_parent"
        android:layout_height="45dip"
        android:background="@drawable/header_gradient"
        android:layout_below="@+id/mainPart">

        <Button
            android:id="@+id/previous"
            android:layout_width="60dip"
            android:layout_height="20dip"
            android:text="Previous"
            android:textColor="#ffffff"
            android:layout_marginRight="3dip"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:background="@drawable/glossy_button_blank_black_rectangle"
            >
        </Button>

        <Button
            android:id="@+id/replay"
            android:layout_width="60dip"
            android:layout_height="20dip"
            android:text="Replay"
            android:textColor="#ffffff"
            android:layout_marginLeft="3dip"
            android:layout_toRightOf="@+id/previous"
            android:layout_centerVertical="true"
            android:background="@drawable/glossy_button_blank_black_rectangle"
            >
        </Button>


        <Button
            android:id="@+id/nextEvaluate"
            android:layout_width="60dip"
            android:layout_height="20dip"
            android:text="Next"
            android:textColor="#ffffff"
            android:layout_marginLeft="3dip"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:background="@drawable/glossy_button_blank_black_rectangle"
            >
        </Button>

</RelativeLayout>


</RelativeLayout>

So, now What changes i have to do to acheave such type of view appearance ?
Please help me regarding this.
Thanks.

  • 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-25T12:33:57+00:00Added an answer on May 25, 2026 at 12:33 pm

    did you try this by adding this tag under Activity tag in manifest

    android:windowSoftInputMode="stateAlwaysVisible|adjustResize"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok guys, novice here. I have a screen shot of storyboard I'm working on
I have a XIB set up like in this screenshot: alt text http://emberapp.com/jxpx777/images/interface-builder/sizes/m.png File's
i have this GUI screen shots from the design team which i needs to
I have this code to draw an ellipse in the screen but I don't
I have seen this question: Are there any decent UI components for touch screen
I have a login screen that I force to be ssl, so like this:
I am creating an iPad app with splitview, here is the screen shot, In
I have converted HTML to DOC format using PHP. kindly view the below screen
I have a simple UIViewController whose view is created via a Nib. Here's the
I cannot change the css theme of my Drupal View. This is a screenshots

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.