part of my code:
in onCreate():
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.main);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
R.xml.custom_title);
in setCustomTitle() which was invoked when some button was clicked
LayoutInflater inflater = LayoutInflater.from(this);
View titleLayout = inflater.inflate(R.xml.custom_title, null);
TextView rightView = (TextView)
titleLayout.findViewById(R.id.tv_right);
rightView.setText("I want you to change");
but the title content is always the same, help me!
Thanks in advance!!!
--
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