I am having four tabs in my tab activity and I need a toolbar with three buttons on top of tabactivity irrespective of current tab selection.
Can I use viewstub for this?
Could anyone help me to achieve this?
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.
Here the framelayout with id ‘tabcontent’ is where the content of our tab goes to. What ever you put outside this framwlayout will be in the tab activity irrespective of the tab selected.
If you look on the top of the xml you can see a linearlayout with id ‘header’. This is a heading layout that I made which will always be visible in the tab layout. You can do the same to create a toolbar by putting buttons instead of textviews like ive done.