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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:36:37+00:00 2026-05-27T06:36:37+00:00

I used relativelayout and here is what I’ve got. I can’t get the image

  • 0

I used relativelayout and here is what I’ve got. I can’t get the image to fill the section I want. I don’t know how to fix it. I’ve heard something about using layout weight, is that some thing I should use?

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" 
android:background="@drawable/background">


<ImageView
    android:id="@+id/imagehome"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_marginLeft="10dp"
    android:layout_marginRight="10dp"
    android:layout_margin="10dp"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true"
    android:layout_above="@+id/tvtitle1"
    android:src="@drawable/one" />

   <TextView
        android:id="@+id/tvtitle1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"         
        android:gravity="center_vertical"
        android:text="Voted Best Dentist five years running by"
        android:textSize="16dp"
        android:textColor="#9D4F1B"
        android:layout_above="@+id/tvtitle2"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="6dp"/>


   <TextView
        android:id="@+id/tvtitle2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:text="The Oakland Tribune"
        android:textSize="16dp"
        android:textColor="#9D4F1B"
        android:layout_above="@+id/tvhome"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="15dp"/>

    <TextView
        android:id="@+id/tvhome"
        android:layout_width="280dp"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:text="     You&apos;ll be cared for by our highly trained staff of dental professionals,energized to work as a team while providing the highest quality of care for your dental health. We offer complete dentistry for the entire family at a single location.                                                           "
        android:textColor="#4C2016"
        android:textSize="15dp"
        android:layout_centerHorizontal="true"
        android:layout_above="@+id/special"
        android:layout_marginBottom="25dp" />


    <Button
        android:id="@+id/special"
        android:layout_width="120dp"
        android:layout_height="40dp"
        android:background="@drawable/cc"
        android:text="Specials"
        android:textColor="#F6E6C6"
        android:textSize="17dp"
        android:textStyle="bold"
        android:layout_centerHorizontal="true"
        android:layout_above="@+id/tvbutton"
        android:layout_marginBottom="15dp" />


    <TextView
        android:id="@+id/tvbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="App provided by Bay Area Dental Marketing"
        android:layout_centerHorizontal="true"
        android:textSize="10dp"
        android:layout_alignParentBottom="true" />



 </RelativeLayout>

on the xml file,

enter image description here

and on the device

enter image description here

It got better but it’snot there yet!

  • 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-27T06:36:38+00:00Added an answer on May 27, 2026 at 6:36 am

    When working with multiple screen sizes, I have found it best practice to either (a) use RelativeLayout, or (b) set a LinearLayout inside a ScrollView.

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

Sidebar

Related Questions

There used to be an option in the submit wizard where you can specify
I used HTTPService for reading xml, but I want only a particular xml field
I have used the following in android manifest. <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:ads=http://schemas.android.com/apk/lib/com.google.ads
I want to add two views one after the other, I used this way
I used following code to move a image it works fine but while moving
I have been trying to get this layout correct and having trouble. Here is
I have got a ListView and I want to change the Backgroundcolor of it.
I used the tabhost tutorial to get started with the Tabhost control. After some
I have used the android v4 viewPager widget. I want to go to a
I used Infragistics WebDataGrid , I have BoundCheckBoxField column, I want remove partial check

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.