tommo
tommo

Reputation: 1350

How do i get the android layout to redraw?

My android layout contains text fields that are populated upon opening the app.
The problem i'm having is layout doesn't redraw with the refreshed view until i press the text input box. The text fields populate immediately on touch. How do i ensure the layout is refreshed automatically?

Upvotes: 1

Views: 57

Answers (1)

Henry
Henry

Reputation: 43738

To make a view redraw itself call invalidate on it. But a TextView should do that automatically if the text is changed.

Upvotes: 2

Related Questions