Procurares
Procurares

Reputation: 2249

Android ListView adapter behaviour

I have total 9 rows. I want to change text style in only one row, for example in a row, which TextView text equals "Disabled". When i set text style for this row, it affects 3 more rows. In Result i have 4 rows which TextView text is bold. What kind of problem is it?

Upvotes: 0

Views: 75

Answers (1)

soynerdito
soynerdito

Reputation: 511

In ListView adapter Views are reused or recycled. In your code, set it to your special textStyle when "Disabled" and to default when not.

Upvotes: 1

Related Questions