Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How do do I change the color of the tab bar
Started by JoePringles May 22 2017 10:26 AM

- - - - -
3 replies to this topic
tab bar tab corona help guide lua
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

JoePringles

[GLOBAL: userInfoPane.html]
JoePringles
  • Contributor

  • 283 posts
  • Corona SDK

I am using the Tab Bar Application template and I want to change the color of the bar.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,125 posts
  • Corona Staff

See the documentation for the tabBar widget: 

 

https://docs.coronalabs.com/api/library/widget/newTabBar.html

 

There will be examples on various ways to change the visuals for a tabBar.

 

Rob



[TOPIC: post.html]
#3

scott0

[GLOBAL: userInfoPane.html]
scott0
  • Enthusiast

  • 79 posts
  • Corona SDK

Adding to this thread because I think it will come up in searches... The docs do not address explicitly setting the background color of a tabbar widget, and :setFillColor doesn't work.  It appears that the only available method is using images



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,125 posts
  • Corona Staff

Correct, you need an image to set the background of the tabBar.

 

Rob




[topic_controls]
[/topic_controls]