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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:27:25+00:00 2026-05-23T02:27:25+00:00

I have 3 components to show in my app: Inside a layout with a

  • 0

I have 3 components to show in my app:
Inside a layout with a background I want to set: TextView + ScrollView + Button at the bottom

This is the code I have done so far:

<RelativeLayout style="@style/fill_parent" android:background="@layout/shapetablehome" android:layout_margin="10dp"
android:layout_alignLeft="@+id/imageUser" android:layout_below="@+id/userblock">
    <LinearLayout style="@style/fill_parent" android:orientation="vertical" android:id="@+id/boxcomment">
        <TextView android:id="@+id/textTime" android:textSize= "18dip" android:textStyle="bold" android:textColor="@color/black"            
            style="@style/wrap_content" android:text="Comento sobre Alicante" android:paddingLeft="10dp"
            android:paddingTop="10dp">
        </TextView>
        <ScrollView style="@style/fill_parent">
            <TextView android:id="@+id/textTime" android:textSize= "18dip" android:textColor="@color/black"
                style="@style/wrap_content" android:text="Comentario sobre Alicante Comentario sobre Alicante
                Comentario sobre AlicanteComentario sobre AlicanteComentario sobre AlicanteComentario sobre Alicante
                Comentario sobre AlicanteComentario sobre AlicanteComentario sobre AlicanteComentario sobre Alicante
                Comentario sobre AlicanteComentario sobre AlicanteComentario sobre AlicanteComentario sobre Alicante
                Comentario sobre AlicanteComentario sobre AlicanteComentario sobre AlicanteComentario sobre Alicante
                Comentario sobre AlicanteComentario sobre AlicanteComentario sobre AlicanteComentario sobre Alicante" 
                android:paddingLeft="10dp"
                android:layout_below="@+id/textTime" android:paddingTop="10dp">
            </TextView>
        </ScrollView>
    </LinearLayout>
<Button android:id="@+id/btRegister" style="@style/wrap_content" android:gravity="center" 
    android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="10dp"
    android:paddingLeft="10dp" android:paddingRight="10dp" 
    android:background="@layout/selectoryellowbutton" android:textSize="20px" android:layout_height="42dip" 
    android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:text="Escribir a Inma Bermejo">
</Button>
</RelativeLayout>

The problem is when the comment is too long the text on the ScrollView position behind the button. If I set the button to be below the linerLayout with the textView+ ScrollView,
like:

<Button android:id="@+id/btRegister" style="@style/wrap_content" android:gravity="center" 
    android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginBottom="10dp"
    android:paddingLeft="10dp" android:paddingRight="10dp" android:layout_below="@+id/boxcomment"
    android:background="@layout/selectoryellowbutton" android:textSize="20px" android:layout_height="42dip" 
    android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" android:text="Escribir a Inma Bermejo">
</Button>

The button doesnt appear. I could have used a LinerLayout with the 3 components, but I want the button to position always at the bottom of the layout.

Any suggestion?

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-23T02:27:26+00:00Added an answer on May 23, 2026 at 2:27 am

    I have solved the problem using the parameter android:layout_above=”@+id/btRegister” for the LinearLayout. Is analog to use the solution I mention before, of using the parameter android:layout_below=”@+id/boxcomment” for the button…
    But for some reason I dont understand the button is hidden whereas using the first it does not.

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

Sidebar

Related Questions

My flex app has various Custom components. I want the tooltips for all of
I have an app that is going to navigate to a UISplitView (inside another
My app has windows that are components. In my case, now I have 2
I have a Delphi form inside a DLL (I know that this restricts the
Hi and thanks for looking! Background I have made a simple little app in
I have two components that that communicate via TCP/IP. Component A acts as a
I have two components. One is called InsideComp and one is called OutsideComp. OutsideComp
We have few components like libraries dlls When initially created I ran the following
My situation: I have several components, which sometimes have changes to them, and are
I have an UIPickerView with 3 components populated with 2 NSMutableArrays (2 components 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.