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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:58:33+00:00 2026-05-24T08:58:33+00:00

I’m trying to get a solid understanding of how Android Layouts work. I have

  • 0

I’m trying to get a solid understanding of how Android Layouts work. I have a layout that I’d like to create but I have been having a very hard time creating it. I have included the code for the layout as well as an image http://tinypic.com/r/33258hx/7 that represents what I’d like to create.

I’ve been struggling with the layout code below and I’m no where close to getting what it is I planned. Could someone please provide me with suggestions and/or references that may help? Thanks.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:orientation="horizontal"
    android:layout_gravity="center_vertical" 
    android:layout_height="fill_parent">

     <LinearLayout
       android:layout_width="wrap_content"
       android:layout_gravity="center_horizontal"
       android:layout_height="fill_parent">

    <ImageView 
       android:id="@+id/image1"
       android:layout_width="wrap_content"
       android:layout_height="fill_parent"
       android:src="@drawable/image1"
       android:scaleType="fitXY">
     </ImageView>

           <LinearLayout
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:scaleType="fitXY"
               android:layout_gravity="center_vertical">               
           <ImageView 
                android:id="@+id/image2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/image2"
                android:scaleType="fitXY">
           </ImageView>

           <ImageView 
                android:id="@+id/image3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/image3"
                android:scaleType="fitXY">
           </ImageView>

           </LinearLayout>

    </LinearLayout>

    <RelativeLayout
       android:orientation="horizontal"
       android:layout_width="fill_parent"
           android:layout_gravity="bottom"
           android:layout_height="wrap_content">

    <TextView 
        android:id="@+id/text1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:textSize="15sp"
        android:text="text1"/>   

    <ImageView 
        android:id="@+id/imageText1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ImageText1"
        android:layout_above="@+id/text1"
        android:scaleType="fitXY"/>

           <ImageView
               . . .
                />

     <TextView 
        android:id="@+id/Text2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@+id/Text1"
        android:layout_above="@+id/ImageText2"
        android:text="Text2"
        android:paddingLeft="70px"
        android:textSize="50sp"/>

     <View android:id="@+id/divider"
         android:background="@drawable/black_white_gradient"
         android:layout_width="fill_parent"
         android:layout_above="@id/current_kw"
         android:layout_height="1dp"/>

    <TextView 
        android:id="@+id/Text3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="30px"
        android:layout_alignParentBottom="true"
        android:layout_toRightOf="@+id/ImageText3"
        android:textSize="15sp"
        android:text="Text3"/>

    <TextView 
        android:id="@+id/Text4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="30px"
        android:layout_above="@+id/ImageText4"
        android:layout_toRightOf="@+id/Text3"
        android:textSize="50sp"
        android:text="Text4"/>

        ...

    </RelativeLayout>

</LinearLayout>
  • 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-24T08:58:33+00:00Added an answer on May 24, 2026 at 8:58 am

    Here is the image & XML code for what you want, exactly. I hope it will serve the purpose:

    enter image description here

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical">
     <LinearLayout 
        android:layout_height="fill_parent" 
        android:id="@+id/linearLayout1" 
        android:layout_width="fill_parent"
        android:layout_weight="0.25"
        android:orientation="horizontal">
        <ImageView 
            android:layout_height="fill_parent" 
            android:src="@drawable/icon" 
            android:id="@+id/imageView1" 
            android:layout_width="fill_parent"
            android:layout_weight="1.0">
        </ImageView>
        <LinearLayout
            android:layout_height="fill_parent" 
            android:id="@+id/linearLayout3" 
            android:layout_width="fill_parent" 
            android:orientation="vertical"
            android:layout_weight="1.0">
            <ImageView 
                android:layout_height="fill_parent" 
                android:src="@drawable/icon" 
                android:id="@+id/imageView2" 
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:layout_gravity="center_horizontal">
            </ImageView>
            <ImageView 
                android:layout_height="fill_parent" 
                android:src="@drawable/icon" 
                android:id="@+id/imageView3" 
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:layout_gravity="center_horizontal">
            </ImageView>
            <ImageView 
                android:layout_height="fill_parent" 
                android:src="@drawable/icon" 
                android:id="@+id/imageView4" 
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:layout_gravity="center_horizontal">
            </ImageView>
        </LinearLayout>
    </LinearLayout>
    <LinearLayout 
        android:layout_height="fill_parent" 
        android:id="@+id/linearLayout2" 
        android:layout_width="fill_parent"
        android:layout_weight="0.75"
        android:orientation="horizontal">
        <LinearLayout 
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:layout_weight="1.0"
            android:orientation="vertical">
            <ImageView 
                android:id="@+id/iv_img1"
                android:layout_height="fill_parent"
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:src="@drawable/icon"
                android:layout_gravity="center_horizontal"/>
            <TextView 
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:text="text"
                android:gravity="center_horizontal"/>
        </LinearLayout>
        <LinearLayout 
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:layout_weight="1.0"
            android:orientation="vertical">
            <ImageView 
                android:id="@+id/iv_img1"
                android:layout_height="fill_parent"
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:src="@drawable/icon"
                android:layout_gravity="center_horizontal"/>
            <TextView 
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:text="text"
                android:gravity="center_horizontal"/>
        </LinearLayout>
        <LinearLayout 
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:layout_weight="1.0"
            android:orientation="vertical">
            <ImageView 
                android:id="@+id/iv_img1"
                android:layout_height="fill_parent"
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:src="@drawable/icon"
                android:layout_gravity="center_horizontal"/>
            <TextView 
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:text="text"
                android:gravity="center_horizontal"/>
        </LinearLayout>
        <LinearLayout 
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:layout_weight="1.0"
            android:orientation="vertical">
            <ImageView 
                android:id="@+id/iv_img1"
                android:layout_height="fill_parent"
                android:layout_width="wrap_content"
                android:layout_weight="1.0"
                android:src="@drawable/icon"
                android:layout_gravity="center_horizontal"/>
            <TextView 
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:text="text"
                android:gravity="center_horizontal"/>
        </LinearLayout>
    </LinearLayout>
    

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Basically, what I'm trying to create is a page of div tags, each has
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is

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.