Yaseen Humsi
Yaseen Humsi

Reputation: 1

android check row visibility in scrolled tablelayout

I have a Scrolled TableLayout with hundred row's and I update the content of row's according to timer , I want to to update only the row's are currently appear in the screen and not the hidden row's in the bottom of ScrollView

Upvotes: 0

Views: 773

Answers (2)

Ishu
Ishu

Reputation: 5457

You can use a flag value set to true if the row is visible and the same to false if it is invisible. Then in your timer just check the boolean flag and if it is true update the content.

Upvotes: 0

testingtester
testingtester

Reputation: 548

Can't you use

int test = tableRow.getVisibity();

and use if statements to based on the value obtained?

Upvotes: 1

Related Questions