Hi, how can i change the text of a button programming a widget?
Tnks, Valerio
Hi, how can i change the text of a button programming a widget?
Tnks, Valerio
You can use the setText()
method. Example:
Button p1_button = (Button)findViewById(R.id.Player1);
p1_button.setText("Some text");
Also, just as a point of reference, Button extends TextView, hence why you can use setText()
just like with an ordinary TextView.
I resolved with "remoteViews.setTextViewText(R.id.Counter,"Text");"