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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:04:10+00:00 2026-05-26T11:04:10+00:00

Hy! I want to have have a layout like this: The problem is i

  • 0

Hy!

I want to have have a layout like this:

enter image description here

The problem is i don’t know what to use:

  • Gridview?
  • TableLayout?
  • LinearLayout with PictureViews?

The Pictures should be oriented in the middle of the screen(horicontal & vertikal)

Please add some code example in your answers.

thx

  • 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-26T11:04:11+00:00Added an answer on May 26, 2026 at 11:04 am

    one way can do this type of layout

    <?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" android:gravity="center_horizontal|center_vertical">
        <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <ImageView android:layout_width="150dp" android:layout_height="150dp"
                android:layout_weight="1" android:background="@drawable/bg_img"
                android:layout_margin="5dp"/>
            <ImageView android:layout_width="150dp" android:layout_height="150dp"
                android:layout_weight="1" android:background="@drawable/bg_img"
                android:layout_margin="5dp"/>
        </LinearLayout>
        <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <ImageView android:layout_width="150dp" android:layout_height="150dp"
                android:layout_weight="1" android:background="@drawable/bg_img"
                android:layout_margin="5dp"/>
            <ImageView android:layout_width="150dp" android:layout_height="150dp"
                android:layout_weight="1" android:background="@drawable/bg_img"
                android:layout_margin="5dp"/>
        </LinearLayout>
    </LinearLayout>
    

    i used this image download from here, image is too big but this was test only you can use your images just replace the background src in imageview in each or as per your requirement.

    enter image description here

    and you get the result like this way

    enter image description here

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

Sidebar

Related Questions

I have a layout like this in which I want to display a label
I would like to have a specific layout but don't know how to fix
I want to set layout something like What i thought that i will have
I have jQuery load asset on my layout and I want to use CHtml::ajaxButton/ajaxSubmitButton
I have a problem with the layout. I want to place one textedit and
I do have a problem with TextView . I don't want to have any
I want to have different layouts like [left|content|right] and [left|content] or [content|right] when using
a have three column layout and i want to have three divs inside the
I want to have a 2 column layout, and have the left column able
I have a layout with three elements and its orientation is 'horizontal' I want

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.