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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:02:30+00:00 2026-06-04T15:02:30+00:00

I have this code: <?xml version=1.0 encoding=UTF-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/RelativeLayout02 android:layout_width=fill_parent android:layout_height=fill_parent > <ImageView

  • 0

I have this code:

<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout02"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >   


 <ImageView  android:id="@+id/terranlogo1"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:src="@drawable/terranlogo"
    android:layout_centerHorizontal="true"
    />

 <ImageView  android:id="@+id/protosslogo1"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:gravity="top|right"
    android:src="@drawable/protosslogo"
    />

 <ImageView  android:id="@+id/zergologo1"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:gravity="top|left" 
    android:src="@drawable/zerglogo"
    />

The image view on the right is not showing. The other 2 are just fine, I even tried setting them to 50 dp and the “protosslogo1” still does not show. What am I doing wrong?

Thanks, All help is appreciated- Lijap

  • 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-04T15:02:31+00:00Added an answer on June 4, 2026 at 3:02 pm

    Position your ImageViews like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/RelativeLayout02"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >   
    
    
     <ImageView  android:id="@+id/terranlogo1"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:src="@drawable/terranlogo"
        android:layout_centerHorizontal="true"
        />
    
     <ImageView  android:id="@+id/protosslogo1"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_alignParentRight="true"
        android:src="@drawable/protosslogo"
        />
    
     <ImageView  android:id="@+id/zergologo1"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_alignParentLeft="true" 
        android:src="@drawable/zerglogo"
        />
    

    Right now protosslogo1 is behind zergologo1. You’re using android:gravity that is used to place the content(and the size of your ImageView is fixed so it doesn’t matter) of the View. Second, you don’t have any rules set on your ImageViews so they are placed by default(in a RelativeLayout) in the top-left corner.

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

Sidebar

Related Questions

I have this XML: <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android xmlns:ads=http://schemas.android.com/apk/lib/com.google.ads android:id=@+id/LinearLayout1 android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/fondoverde3
I have an XML layout like this: <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=match_parent
I am trying to inflate <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=wrap_content> <Item android:id=@+id/ltArr
I have a layout that has a listview and imagebutton: <?xml version=1.0 encoding=utf-8?> <RelativeLayout
I have this code: ... request data = new request(); data.username = formNick; xml
I have this test code that just saves an XML file to a folder.
I have this below code and it work fine header (content-type: text/xml); $xml =
I have code like this: // Take the xml message and turn it into
Hi i have a code like this: $doc = new DOMDocument(); $doc->Load('courses.xml'); foreach ($doc->getElementsByTagName('courses')
I have my main.xml up and in the XML code I have: <?xml version=1.0

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.