java - Impossible to update the text of a textview in a RelativeLayout -
i have simple screen created in xml, parent layout "relativelayout" , have child layout (who "relativelayout" containing 3 textview inside).
the thing have press button , change values of textviews.
to change text this:
mytextview.settext("text");
the code runs perfectly, not refresh text of textviews in layout.
but when screen rotated, screen refreshes, , label gets correct value.
why happen? why when pressing button can not update text?
i tried using "asynctask" , text not updated either.
did simple can problematic. ?
greetings.
your code
mytextview.settext("text");
should executed on ui thread give effect suppose if want updated after button click code should inside onclickbutton
listener of button
visit this link more details
Comments
Post a Comment