2

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

Joshua Partogi
  • 16,167
  • 14
  • 53
  • 75

1 Answers1

0

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.

Community
  • 1
  • 1
rekaszeru
  • 19,130
  • 7
  • 59
  • 73