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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:12:49+00:00 2026-06-05T12:12:49+00:00

I am using tableLayout for my app, and I use addView to add new

  • 0

I am using tableLayout for my app, and I use addView to add new tablerow at the bottom,
but when I want to insert a row maybe between the first and the second row I would have to
delete all of them and addView all over again, can anyone provide me with a better option?

===============
row 1

        <---Insert a row here.

row 2

===============

row 3

===============

  • 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-05T12:12:51+00:00Added an answer on June 5, 2026 at 12:12 pm

    Try creating a new cell at the bottom, and (not deleting, but) re-assigning them.

    new row N = New N-1
    New row N-1 = New N-2

    etc…

    After you have finished copying your current rows down, you can create your new row and assign it to the row number you have (essentially) freed.

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

Sidebar

Related Questions

I am trying to add TableLayout to the LinearLayout from resourse(xml) using programmable way.
I'm using a TableLayout in Android. Right now I have one TableRow with two
I want two rows and first row has two columns. But I do not
I am using tablelayout in java file with 7 row and 7 column. In
I am working on a droid application, and I am using a TableLayout but
I am new to android and try to construct this layout using TableLayout. I
Context: I have a TableLayout (created using XML), which has one TableRow, which has
hi i've tried to add margin programmatically i've tried using TextView tv = new
I am using TableLayout , and when I am placing a button, I want
I created an app with 2 tabs using TabLayout... I need to integrate that

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.