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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:06:33+00:00 2026-05-27T15:06:33+00:00

I am an Android Newbie trying to use my VB experience (8yrs ago) and

  • 0

I am an Android Newbie trying to use my VB experience (8yrs ago) and design a UI. I am trying to create a checkers board which in VB would be a form on which I add multiple resizable panel widgets contiguously as needed in multiple rows. Since these are panels I can either add a small image (coin) on it (with the panel as background) or even add another small panel with a color that I can make visible and invisible to represent the coins. I know describing a VB UI is bad but VB is meant to make form designs easy and it really does and that is the only language I can think in for UI.

I notice that android SDK does not nearly have enough widgets for me to use. The best I could think of is using a TableLayout with multiple rows. The thing I don’t get is what do I use to represent a square? Is there something analogous to a VB panel widget? I don’t want to use an image because I want the board to be auto adjust to the screen dimensions.

Could some one help me with some hints?

  • 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-27T15:06:33+00:00Added an answer on May 27, 2026 at 3:06 pm

    You could define the layout in XML using a horizontal LinearLayout and fill it with 8 ImageViews (or any other container that can show an image/color) and copy it 7 times in a vertical LinearLayout, similar to this:

    <LinearLayout android:orientation="vertical"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent" >
        <LinearLayout android:orientation="horizontal"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:layout_weight="1" >
            <ImageView android:id="@+id/square_1"
                       android:layout_weight="1"
                       android:layout_width="fill_parent"
                       android:layout_height="fill_parent"
                       <!-- Set image or background here --> />
            <!-- Repeat the ImageView 7 times and change the id for every ImageView
                 you create -->
        </LinearLayout>
        <!-- Reapeat the LinearLayout 7 times too -->
    </LinearLayout>
    

    This will create 8 rows with 8 squares in each and all the squares will have the same size thanks to the weight property which indicates that they should all get equal space.

    To use Java code to change image/background, you will have to use:

    ImageView square_1 = (ImageView)findViewById(R.id.square_1);
    square_1.setBackground(Color.yellow);
    

    Read more in the Android SDK Reference here:

    • ImageView: http://developer.android.com/reference/android/widget/ImageView.html
    • LinearLayout: http://developer.android.com/reference/android/widget/LinearLayout.html

    Hope this helps you along the way!

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

Sidebar

Related Questions

I am a newbie android developer and I am trying to design a simple
I am a newbie to android development. I am trying to create a List
Well, i am an Android newbie. I am trying to write an application which
Hi I'm a newbie in Android Programming. I'm trying to build an activity which
I am a newbie to android development and am trying to develop a simple
I'm still a newbie in Android and I'm trying to work my way around
I have the following thing to achieve in Android(newbie). I have an xml which
I am newbie in android, in my android app, a main Activity class, which
I am newbie in android. I had planned to develop an application which divides
Im still a newbie in android, would appreciate your help as I couldnt find

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.