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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:42:59+00:00 2026-06-15T10:42:59+00:00

I think the solution will be quite obvious, but as long as I’m rookie

  • 0

I think the solution will be quite obvious, but as long as I’m rookie in android forgive me 🙂

I want to place some picture on the right upper side of the view, and a textview, which will fit the rest of the view. Here’s what I’ve done:

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

        <ImageView
            android:id="@+id/logo_in_listing"
            android:layout_width="100dip"
            android:layout_height="100dip"
            android:layout_alignParentRight="true"
            android:layout_marginRight="11dip"
            android:layout_marginTop="11dip"
            android:background="@drawable/border_for_imageview"
            android:src="@drawable/facebook_logo" />

          <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/someString"
            android:id="@+id/textview1"
            android:layout_toLeftOf="@id/logo_in_listing"
            android:layout_margin="3dip"/>

</RelativeLayout>

Here’s what I get:

enter image description here

My questions:

1) How to make the textview fit also the lower part of imageview? I don’t want that space to be left unused.

2) As you see, I’ve used dips for placing ImageView. What would you recommend in this case? I mean, how to write in a way, that it will be same for all screen sizes? Or maybe dip is OK?

  • 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-15T10:43:03+00:00Added an answer on June 15, 2026 at 10:43 am

    You have to use Spanned interface. Here’s a good example

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

Sidebar

Related Questions

I can only think of a client-side solution using jQuery, but is it possible
I am writing the program in Cocoa but I think that the solution must
I am creating a desktop app that will create some reports. I want to
I think the solution is really simple, I just haven't come across it online.
I'm trying to think of a solution regarding a way to run existing executables
What think to be consider when you prefer coding a solution in form of
I think I have a big problem. I have a two projects solution. First
I've been looking around for a solution to this thing but I haven't found
Think I have an integer array like this: a[0]=60; a[1]=321; a[2]=5; now I want
I have been working with Flixel in FlashDevelop for quite some time, and I

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.