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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:21:56+00:00 2026-05-20T12:21:56+00:00

I am a beginner in android.I need to design my layout as given in

  • 0

enter image description here

I am a beginner in android.I need to design my layout as given in the image(place 2 images in the 2 ends of the screen). But as per my code, its not showing as like the given image in my galaxy tablet. Please help.
My code is :

  <?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:background="#FFFFFF">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
    android:layout_marginLeft="50dp"  
    android:layout_marginTop="50dp">

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical">

<ImageView android:id="@+id/imgPicture"
        android:layout_width="wrap_content" 
      android:layout_height="wrap_content"

        android:src="@drawable/cam2"  
     android:onClick="@string/camera_click">
    </ImageView>



<TextView android:text="Camera" android:id="@+id/TextView01"
      android:textColor="#000000"
        android:layout_width="wrap_content" 
     android:layout_height="wrap_content"></TextView>


</LinearLayout>



<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:layout_marginLeft="70dp">

<TextView android:text="" android:id="@+id/TextView015"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"></TextView>



<TextView android:text="" android:id="@+id/TextView06"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"></TextView>


</LinearLayout>




<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" >


    <ImageView android:id="@+id/imgPicture1" 
            android:onClick="@string/gallery_click"
        android:layout_width="wrap_content" 
          android:layout_height="wrap_content"
        android:src="@drawable/photosgallery">
    </ImageView>

<TextView android:text="Gallery" android:id="@+id/TextView02" 
             android:layout_marginTop="15dp"
        android:layout_width="wrap_content" 
           android:layout_height="wrap_content"
        android:textColor="#000000"
        ></TextView>

</LinearLayout>


</LinearLayout>



    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content" 
android:orientation="horizontal" android:layout_marginLeft="55dp" 
      android:layout_marginTop="50dp">

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical">

<ImageView android:id="@+id/imgPicture2"
        android:layout_width="wrap_content" 
          android:layout_height="wrap_content"
        android:src="@drawable/contacts">
    </ImageView>



<TextView android:text="Contacts" android:id="@+id/TextView03"
      android:textColor="#000000"
        android:layout_width="wrap_content" 
      android:layout_height="wrap_content"></TextView>


</LinearLayout>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content" 
      android:gravity="right"
android:layout_gravity="right"
android:orientation="vertical" android:layout_marginLeft="70dp" >

<TextView android:text="" android:id="@+id/TextView012"
        android:layout_width="wrap_content" 
     android:layout_height="wrap_content"></TextView>



<TextView android:text="" android:id="@+id/TextView013"
        android:layout_width="wrap_content" 
 android:layout_height="wrap_content"></TextView>


</LinearLayout>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="right"
android:orientation="vertical" >


    <ImageView android:id="@+id/imgPicture3"
        android:layout_width="wrap_content" 
               android:layout_height="wrap_content"
        android:src="@drawable/process">
    </ImageView>

<TextView android:text="Processed" android:id="@+id/TextView04" 
    android:textColor="#000000"android:layout_width="wrap_content"    
   android:layout_height="wrap_content"></TextView>

</LinearLayout>


</LinearLayout>

   </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-20T12:21:56+00:00Added an answer on May 20, 2026 at 12:21 pm

    You can use a tablelayout.

    <TableLayout>   <Tablerow> // 1st row 
      <LinearLayout> // with vertical Orientation
          // image view 1
          //textView 1
      </LinearLayout> <LinearLayout> // with vertical Orientation
          // image view 2
          //textView 2
      </LinearLayout>   </Tablerow> <Tablerow> // 2nd row
      <LinearLayout> // with vertical Orientation
          // image view 3
          //textView 3
      </LinearLayout>  <LinearLayout> // with vertical Orientation
          // image view 4
          //textView 4
      </LinearLayout>
    

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

Sidebar

Related Questions

an anyone look at this simple code (?) and tell me what's wrong please?
My question might be kinda confusing but I'll try my best to explain it.
I would like to solve the following problem using constraints but i actually don't
I am creating my first site in asp.net MVC and I have a very
I have an ajax function which should return a list of objects. I'm sorry
Can someone point me to good resource for Net::HTTP? I'm trying to understand why

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.