I have my views built and everything working perfectly, except when i go to update the displayed textview.
I am using the windowmanager.addView() method to inflate a view flipper. one of the views in the fliper contains a textview. I would like to update this textview, though it seems to be impossible.
public void updateTextView(String inString) {
TextView t = (TextView) findViewById(R.id.status);
t.setText(inString);
Log.d("INCOMING String IS FROM THIS!",
inString + " : " + t.getText());
flippy.setDisplayedChild(1);
}
the log message shows that the textview has the correct value, but the actual view itself still shows the default string coded in the xml.
Here are a few things I have tried.
postInvalidate(); invalidate(); post with a new runnable that calls invalidate. WindowManager.updateViewLayouts();
I'm at a bit of a loss, any ideas on how I can get this textview to display my values?