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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:53:40+00:00 2026-05-21T10:53:40+00:00

I have one tablelayout and it contains 2 textviews in one row. All my

  • 0

I have one tablelayout and it contains 2 textviews in one row.
All my rows are added dynamically through the activity and my table is in scrollview. So, as rows are added table is scrolled up step by step.

I am also able to maintain all created and added row ids from the tablelayout.

I want to jump back to the row number specified by user.
Let us say, user gives 5 as a row number. So, my table should be scrolled up at row number 5 so that row comes on the screen view and user can see the content of the 5th row.

I am wandering from 2 days to get solution for this, but not getting any method to achieve this.

Does anyone have solution for it?

  • 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-21T10:53:41+00:00Added an answer on May 21, 2026 at 10:53 am

    To get it to scroll call TableRow.requestRectangleOnScreen() (substitute “TableRow” with the actual TableRow object in your code).

    You can use anything for the rectangle coordinates (like 0,0,0,0) but I believe using something like Rect(0, 0, TableRow.getWidth(), TableRow.getHeight()) will make sure the whole row is scrolled so it’s fully on screen.

    Actually any View object supports requestRectangleOnScreen() so play around with it.

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

Sidebar

Related Questions

I have the following problem spanning dynamically added rows to a TableLayout inside a
I have a TableLayout in which I have one row holding two TextViews, the
I have a TableLayout with dynamically added TableRows depending on the size of a
I have one hibernate sequence, that generates all sequence-numbers in my app. When I
I have a table of Users (tblUsers) which contains details of University staff. I
I'm using a TableLayout in Android. Right now I have one TableRow with two
I have a tablelayout panel with multiple columns. I have added another 2 tablelayout
I have 2 textviews side by side, one aligned right and one left to
Or will I have to incorporate a ScrollView into the TableLayout? Is this even
I have an Activity with two layouts, both implemented in R.layout.main. The first one

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.