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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:50:54+00:00 2026-06-11T13:50:54+00:00

I have a GridLayout and inside it some TextView . I have used android:layout_column

  • 0

I have a GridLayout and inside it someTextView. I have used android:layout_column in xml and it is working. Now my question is that how can we achieve this through java coding. I have seen some examples but they are like as

tv.setLayoutParams(new TableRow.LayoutParams(3));

What Should I do for GridLayout?

  • 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-11T13:50:55+00:00Added an answer on June 11, 2026 at 1:50 pm

    I can’t say it is that method but it is substitute and giving what I want .
    I have set TextView in 4th column and 1st row by this code.

    tv.setLayoutParams(new GridLayout.LayoutParams(GridLayout.spec(0),GridLayout.spec(3)));
    

    Waiting if any other answer is available.

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

Sidebar

Related Questions

I have A Jpanel with A GridLayout inside. Now I added another Jpanel inside
Possible Duplicate: Double Tap -> Zoom on Android MapView? I have an Activity that
My current problem is that I have a JFrame with a 2x2 GridLayout. And
I have an android tabbed application and inside one of my tabs is an
My application have a ListView with GridLayout. I am now trying to introduce ListView
I have a situation wherein I have a bunch of JButtons on a GridLayout.
I am using GridLayout in my SWT GUI app. I have the following GridData
I have a Silverlight 3 application the inside of whose grid layout root looks
I have a panel (with GridLayout( 0,1 )) embedded on JFrame. As per my
I have a panel with GridLayout(1, 3) but i want centralize the content of

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.