I\'m having a problem with setting text to a TextView:
TextView android:editable = \"true\".
In my .java it seems like that this should wor
I was having a similar problem, however my program would crash when I tried to set the text. I was attempting to set the text value from within a class that extends AsyncTask, and that was what was causing the problem.
To resolve it, I moved my setText to the onPostExecute method
protected void onPostExecute(Void result) {
super.onPostExecute(result);
TextView text = (TextView) findViewById(R.id.errorsToday);
text.setText("new string value");
}
To settext in any of in activity than use this below code... Follow these step one by one:
1.Declare
private TextView event_post;
2.Bind this
event_post = (TextView) findViewById(R.id.text_post);
3.SetText in
event_post.setText(event_post_count);