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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:19:33+00:00 2026-06-06T22:19:33+00:00

I am using following configuration to properly fit image inside a scrollview. <?xml version=1.0

  • 0

I am using following configuration to properly fit image inside a scrollview.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scrollbars="vertical" >

    <ImageView
        android:id="@+id/textNimbo"
        android:layout_width="match_parent"
        android:layout_height="2492dp"
        android:layout_alignParentRight="true"
        android:src="@drawable/inicio"
        android:adjustViewBounds="true" />

</ScrollView>

However I need to set also a button inside scrollView and below the ImageView. I tried relative and linear layouts inside scrollView but no succes, button is not visible or image doesn’t fit to scrollView. Any recommended configuration? Thank you.

  • 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-06T22:19:34+00:00Added an answer on June 6, 2026 at 10:19 pm

    A ScrollView can only have one direct child element. So to add a Button and an ImageView, you’ll need something like this:

    <?xml version="1.0" encoding="utf-8"?>
    <ScrollView
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:scrollbars="vertical" >
    
    <LinearLayout
            android:id="@+id/layout"
            android:layout_width="fill_parent"
            android"layout_height="fill_parent">
    
        <ImageView
            android:id="@+id/textNimbo"
            android:layout_width="match_parent"
            android:layout_height="2492dp"
            android:layout_alignParentRight="true"
            android:src="@drawable/inicio"
            android:adjustViewBounds="true" />
       <Button
            android:id="@+id/button1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>
    </LinearLayout>
    </ScrollView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using following WordPress plugin to send email. http://coffee2code.com/wp-plugins/configure-smtp/ I have done configuration,
I am using Fluent NHibernate with an external 'hibernate.cfg.xml' file. Following is the configuration
i' m using BlazeDs. In services-config.xml we got following configuration of endPoint. <channel-definition id=any-amf
I'm trying to get zc.buildout to install Gunicorn from source. Using the following configuration:
I'm using jqgrid tree grid with the following configuration colModel : [ { name:'id',width
Currently I do the following: Create package using msbuild something.csproj /P:Configuration:Some /T:Package After that
In my asp.net web application, I'm using asp.net forms authentication with following configuration. <authentication
I'm trying to configure log4j in an Eclipse plugin project using the following XML
I have exported Spring managed service beans into RMI service using following configuration: <bean
Using following code I try to get updated list of checkbuttons' corresponding text values,

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.