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

The Archive Base Latest Questions

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

Am learning android and am struggling to get my head around this particular layout

  • 0

Am learning android and am struggling to get my head around this particular layout attribute, reading the google dev docs it says:

android:layout_column

The index of the column in which this child should be. Must be an
integer value, such as “100”. This may also be a reference to a
resource (in the form “@[package:]type:name”) or theme attribute (in
the form “?[package:][type:]name”) containing a value of this type.
This corresponds to the global attribute resource symbol
layout_column.

Can anyone explain how this maps to an html equivalent (as table rows appear to borrow heavily from them)?

Is it the number of columns it take sup – eg colspan?

  • 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-18T09:33:28+00:00Added an answer on May 18, 2026 at 9:33 am

    Uh, it means “the index of the column in which this child should be”. The only tricky part is that columns start at 0.

    For example:

    <?xml version="1.0" encoding="utf-8"?>
    <TableLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:stretchColumns="1">
        <TableRow>
            <TextView
                    android:text="URL:" />
            <EditText android:id="@+id/entry"
                android:layout_span="3"/>
        </TableRow>
        <TableRow>
            <Button android:id="@+id/cancel"
                android:layout_column="2"
                android:text="Cancel" />
            <Button android:id="@+id/ok"
                android:text="OK" />
        </TableRow>
    </TableLayout>
    

    Both rows in the above layout have four columns. The first one has four columns because it has a TextView in column 0 and an EditText spanning columns 1, 2, and 3. The second one has four columns because it skips columns 0 and 1 and puts the two Button widgets in columns 2 and 3, courtesy of the android:layout_column="2" attribute in the first Button.

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

Sidebar

Related Questions

this is my first post.. so I'm learning Android & Java (coming from Actionscript),
I've been learning android development and been trying to get the app on my
I've been learning android development and been trying to get the app on my
I tried enough to find in google & android this question. Also did several
I got into this learning the Android Operating System. I'm still in learning mode.
I'm learning Android (ironically from a cross of the developer site from Google and
So I just started learning Android and I am reading the commonsware android development
Learning from my last question , most member names seem to get included in
Im learning lisp and im pretty new at this so i was wondering... if
I'm interested in learning Android development.... but if I install the latest 2.0 SDK,

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.