Hi
I am using a custom title view in my application for each activity. In
one of the activities, based on button clicks I need to change the
custom title view. Now this works fine every time when I make a call
to setFeatureInt.
But if I try to update any items in the custom title (say change the
text of a button or a text view on the title), the update does not
take place.
Debugging through the code shows that the text view and button
instances are not null and I can also see the custom title bar. But
the text on the text view or the button is not updated. Has anyone
else faced this problem? How do I resolve it?
Here's what I tried. Does not get updated even on calling invalidate.
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
R.layout.text_title);
TextView databar = (TextView) findViewById(R.id.title_text);
databar.setText("Some Text");
databar.invalidate();
Button leftButton = (Button) findViewById(R.id.left_btn);
leftButton.setOnClickListener(mLeftListener);
leftButton.setText("Left Btn");
leftButton.invalidate();
Button rightBtn = (Button) findViewById(R.id.right_btn);
rightBtn.setOnClickListener(mRightListener);
rightBtn.invalidate();
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---