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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:31:23+00:00 2026-06-13T21:31:23+00:00

I have such layout on my screen Code is … <?xml version=1.0 encoding=utf-8?> <LinearLayout

  • 0

I have such layout on my screenenter image description here

Code is …

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical" 
android:scrollbarAlwaysDrawVerticalTrack="true"
android:background="@drawable/s21"
android:id="@+id/instructions_view" >

<TextView   
        android:id="@+id/main1name"
    android:layout_width="fill_parent"
    android:layout_height="30dp"
    android:layout_gravity="center"
    android:text="@string/main1name"
    android:textColor="@color/orange5" />

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

                <include android:id="@+id/imageView11"
                layout="@layout/test_button11"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

               >
            </include>
            <include android:id="@+id/imageView12"
             layout="@layout/test_button12"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

               >
            </include>

            </LinearLayout> 


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


            <include android:id="@+id/imageView13"
                layout="@layout/test_button13"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

              >
            </include>
            <include android:id="@+id/imageView14"
             layout="@layout/test_button14"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

              >
            </include>
            </LinearLayout> 


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


            <include android:id="@+id/imageView15"
                layout="@layout/test_button15"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

               >
            </include>
            <include android:id="@+id/imageView16"
             layout="@layout/test_button16"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

               >
            </include>
            </LinearLayout> 


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


            <include android:id="@+id/imageView17"
                layout="@layout/test_button17"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

              >
            </include>
            <include android:id="@+id/imageView18"
             layout="@layout/test_button18"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"

        >
            </include>
            </LinearLayout> 


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


            <include android:id="@+id/imageView19"
                layout="@layout/test_button19"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"
               >
            </include>
            <include android:id="@+id/imageView10"
             layout="@layout/test_button10"
               android:layout_width="fill_parent"
               android:layout_height="wrap_content"
               android:layout_weight="1"
               >
            </include>
            </LinearLayout> 
</LinearLayout> 

Question is – I don’t want to have intervals between buttons onLeft,Right,Top and bottom… How could I do it?

  • 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-13T21:31:25+00:00Added an answer on June 13, 2026 at 9:31 pm

    You can create the same looks like layout via TableLayout with 2 columns and 6 rows. Just fill TableLayout with buttons. And if you want do delete paddings between buttons you should put custom drawables into backgrounds of your buttons (default button background have paddings and margins by default).

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

Sidebar

Related Questions

Long version: I have an Android game. In each screen I'm showing the ads
so I have my main layout as such: <div class=menu> <?php include('/menu.php'); ?> </div>
i have four imageviews in a linear layout in such a manner that only
i have such code (copy paste from wiki). Its multiplication of those big numbers
I have such XML structure which was returned by SharePoint web services. <rs:data ItemCount=4
I have a Map activity in a fairly complex layout. As such, I can't
When we make Android layout in XML, we can use include to make some
I have an Android game that includes a screen that lists all ongoing games,
I have gone through all of the Android docs about handling multiple screen sizes
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE

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.