I understand this is not possible, but is there a workaround so I can use both tabs and a custom titlebar without having to request the titlebar in each individual activity?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create a Custom title bar for your TabActivity. so that both Tabs will be there and Custom Title bar, and further you can refer to the title bar from any activity with in the tabs by using the context of TabActivity.
Check this link for the tutorial of creating custom title bar for any activity
http://www.helloandroid.com/tutorials/how-create-custom-titlebar
so using this tutorial you can create custom-titlebar for your TabActivity
hope it helps…
Update for comment
you can add a method like this in you tab activity for updating the Title. use your own custom layout for title. update the fields in the method.
here for example im using one layout with one TextView
and in Your TabActivity class
in onCreate() of TabActivity class
and from any activity with in the Tab you can set the title like this.