Customize Android TabWidget from XML
You have to create your own styles, state- and layer drawables, and apply them to your TabWidget
in the layout xml.
A working example can be found at this answer's update part, I hope it will help you work it out.
Joshua Partogi
I am a Professional Scrum Trainer at Agility Path Pty Ltd. I run Kanban & Scrum courses at these locations: Singapore Vietnam Malaysia Philippines Dubai Hong Kong Sydney Melbourne Perth Brisbane At the moment I run: Professional Scrum Developer Course Professional Scrum Master Course Professional Scrum Product Owner Course Professional Scrum Kanban Course Advanced Professional Scrum Master Course I code using C# and Ruby. I am learning Go and NodeJS at the moment. Follow me on Twitter Look at my CV Join me on LinkedIn.
Updated on June 04, 2022Comments
-
Joshua Partogi almost 2 years
I have been looking around on how to customize Android TabWidget using XML with no luck. All examples that I have found is showing how to customize TabWidget using Java code. Is it possible to customize [i.e change the background color, change the text color, etc] TabWidget using XML alone? If so, can you redirect me to a document on how to do it or possibly a code snippet?
Thanks