[android-developers] Re: Change custom title view of window at run time

2009-05-14 Thread idev
This is what the whole thing looks like. The first time I set title, it works fine (in onCreate). The next time I set it, it works fine (in searchHandler). The third time when I do it (in reloadHandler), the click listeners are not registered and the text in the text view does not change. I had i

[android-developers] Re: Change custom title view of window at run time

2009-05-05 Thread iDeveloper
Here's the code Initially , when the activity is created, I set the title like this getWindow ().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.text_title); TextView databar = (TextView) findViewById(R.id.search_title_text); databar.setText(titleText); On a button click, I change the title

[android-developers] Re: Change custom title view of window at run time

2009-05-05 Thread Christine
Maybe you can provide more detail on what your code does? You can update TextViews and titles from your code, with .setText() or setTitle (). On May 5, 8:16 am, idev wrote: > Hi > > I am using a custom title view in my application for each activity. In > one of the activities, based on button cl