How to set TextView to display the value of another xml layout file in the Activity in
See using this in an article:
LayoutInflater layout = this.getLayoutInflater ();
View view = layout.inflate (R.layout.login_stytle, null);
Button b = (Button) view.findViewById (R.id.b);
But how to change the button to display the value of it
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This feature is very strange
Reply:
b.setTextView (xxxxx);
Reply:
I tried ah, not so ah
Reply:
Activity can only change your own layout miss it

Reply:
Solved yet, encountered a similar problem
Reply:
b.setText ("");
Reply:
Encountered the same problem, settext not refresh!
There are ways to solve it? ?
No comments:
Post a Comment