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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -