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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:21:17+00:00 2026-05-17T23:21:17+00:00

I need to represent the following diagram: Each X will be an image button.

  • 0

I need to represent the following diagram:
alt text

Each X will be an image button. I was thinking of making three tables with one column each and have each cell height be half the height of the table. The problem is that the table needs to be able to stretch or shrink because I am worried about getting everything on the screen and the tables are the only part that can change size and have the entire thing still look ok. The problem I am having is that the rows are only as big as the image buttons. While all the image buttons are the same size, the left and right table in particular, need to have some padding around the image buttons to make it alright. I would add margins to the buttons but that defeats the reshaping problem I am having…I think. Any suggestions?

  • 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-17T23:21:17+00:00Added an answer on May 17, 2026 at 11:21 pm

    There may be a better way, but below is one way to accomplish this. Do the buttons need to stretch to fit the cells? Or will they just be centered within? Assuming the latter, here’s a suggestion (I am not confident on this, but I believe it should work):

    <LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="horizontal"
     >
     <LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:layout_weight="1"
      android:gravity="center"
      >
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable11"
       />
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable12"
       />
     </LinearLayout>
    
     <LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:layout_weight="1"
      android:gravity="center"
      >
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable21"
       />
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable22"
       />
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable23"
       />
     </LinearLayout>
    
     <LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:layout_weight="1"
      android:gravity="center"
      >
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable11"
       />
      <ImageButton
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"                           
       android:layout_weight="1"
       android:src="@drawable/drawable12"
       />
     </LinearLayout>
    </LinearLayout>
    

    I unfortunately don’t have Eclipse right now to test this, but this should be close to what you need. There’s probably a cleaner way using a RelativeLayout (using fewer nested views) but this is off the top of my head, gives you something to start with.

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

Sidebar

Related Questions

I have a next problem. I need to represent a pressed keys combination in
I have a flattened table that contains columns that represent groups that need to
I can map 1:1 (one-to-one) tables intuitively, like this: But I cannot understand how
I have the need to check whether strings adhere to a particular ID format.
Following a sample of my code: public abstract class<T> { public List<T> GetSomething(string q)
What would be the return type of the following method? ( T ) public
I'm trying to transform a table to an XML struture and I want one
I have an IEnumerable of an item class defined like this: public class Item
For my blog, I want to incorporate my own commenting system without relying on
I'm using C# office ( word ) automation by Microsoft Office 12.0 Object Library

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.