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

The Archive Base Latest Questions

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

I am finishing implementing an application, which has inside activity for sending a message

  • 0

I am finishing implementing an application, which has inside activity for sending a message (just editText and two buttons – send and cancel, message is then send to the fixed address). When i start this activity, on a screen I see textBox and keyboard, which is immediately shown. But disadvantage of this is that theese buttons are covered or half-covered by the keyboard and all I want is to have is similar as in the messages. When keyboard is visible, shrink the text field and show in addtion buttons above the keyboard, if I hit back arrow on under the screen, keyboard dissapears, nearly whole screen would be taken by this editText and on the bottom there will be those two buttons… can it be real?

Edit: How to make it happen, that this screen will have with active keyboard visible all buttons?

<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="fill_parent"
 android:orientation="vertical"
 android:layout_height="fill_parent"
 android:background="@drawable/poz3"
 android:padding="10dip">
 <TextView
  android:text="Message:"
    android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:textSize="25dip"
  android:textColor="@color/black"
 />
 <EditText
    android:id="@+id/message"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="Write message here"
    android:gravity="top"
    android:lines="7"
    android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
    android:imeOptions="actionSend|flagNoEnterAction"
 />
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:orientation="horizontal"
     android:layout_height="fill_parent"
 >
 <Button
  android:id="@+id/enquirySendButton"
  android:layout_width="fill_parent"
  android:layout_height="60dip"
  android:text="Send"
  android:layout_weight="1.0"
  android:background="@drawable/custom_button"
/>
<Button
  android:id="@+id/enquiryExitButton"
  android:layout_width="fill_parent"
  android:layout_height="60dip"
  android:text="Cancel"
  android:layout_weight="1.0"
  android:background="@drawable/custom_button"

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

    have got it working.
    In your XML layout, in the main layout (RelativeLayout) have a LinearLayout with the buttons and android:layout_alignParentBottom=”true”. Add your other layout below, with clause android:layout_above=”@id/yourButtonLayout”
    My real life code goes like this:

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"    
    android:textSize="14dip" 
    >
    
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/taskEditFormBottomButtons"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:baselineAligned="true"
        android:orientation="horizontal"        
        android:layout_alignParentBottom="true"
     >           
    
        <Button
            android:id="@+id/taskEditFormBTSave"        
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textStyle="bold"
            android:text="@string/save" 
            android:layout_weight="0.5"                  
        />
    
        <Button
            android:id="@+id/taskEditFormBTCancel"        
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textStyle="bold"
            android:text="@string/cancel"
            android:layout_weight="0.5"                
        /> 
    </LinearLayout>
    
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@id/taskEditFormBottomButtons"
    >
    
        <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            ....
        >
           ....
        </RelativeLayout>
    </ScrollView>
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just finishing up an Artificial Intelligence course where, as part of the
I'm just finishing up a computer architecture course this semester where, among other things,
I'm just finishing a web page for our sales guy to quickly go through
We are finishing up our web application and planning for deployment. Very important aspect
I finishing up a web application and I'm trying to implement some logging. I've
After finishing two cs classes, I've started working on a personal project in Java.
I spend some time implementing a quicksort algorithm in C#. After finishing I compared
Just finishing up my college project and I want to place a background image
i'm finishing writing a plugin, which allow to zoom images, and then move it,
I am finishing off a C# ASP.NET program that allows the user to build

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.