In an action where you inflate a view, you can capture a TextView with
TextView t = (TextView)findViewById(R.id.myTextView);
where myTextView is the id you specified in your XML.
Now go ahead and t.setText("Something"); , t.setWidth(200) , ...
espinchi
source share