Hello every body, i need some help with a little evolution of my app.
I have a tab bar of 6 buttons, and now i need 10 buttons on the same tab bar.
There is a solution for this ?
With a slide with the finger : the user slide the tab bar (left at right) and the tab bar follow the finger and we have more tab (buttons). Do you see what i want say ?
Do you have any ideas ?
thanks.
i use this code for my tab bar :
display.setStatusBar( display.DefaultStatusBar ) local widget = require ( "widget" ) local storyboard = require ( "storyboard" ) display.setDefault( "background", 255, 255, 255 ) -- Create buttons table for the tab bar local tabButtons = { { width = 72, height = 72, defaultFile = "icone1.png", overFile = "icone1-down.png", label = "Home", size = 16, onPress = function() storyboard.gotoScene( "view1" ); end, selected = true }, { width = 90, height = 100, defaultFile = "iconmikanb.png", overFile = "iconmika.png", label = "Mika", size = 16, onPress = function() storyboard.gotoScene( "view2" ); end, }, { width = 90, height = 95, defaultFile = "iconmagicnb.png", overFile = "iconmagic.png", label = "Magic", size = 16, onPress = function() storyboard.gotoScene( "view3" ); end, }, { width = 90, height = 95, defaultFile = "iconpshgnb.png", overFile = "iconpshg.png", label = "PSHG", size = 16, onPress = function() storyboard.gotoScene( "view4" ); end, }, { width = 85, height = 90, defaultFile = "icontsnb.png", overFile = "iconts.png", label = "TS", size = 16, onPress = function() storyboard.gotoScene( "view5" ); end, }, { width = 90, height = 95, defaultFile = "iconniconb.png", overFile = "iconnico.png", label = "Nico", size = 16, onPress = function() storyboard.gotoScene( "view6" ); end, }, } --Create a tab-bar and place it at the bottom of the screen local demoTabs = widget.newTabBar { top = display.contentHeight - 120, width = display.contentWidth, height = 120, backgroundFile = "assets/tabbar.png", --backgroundFileWidth = 720 --backgroundFileHeight = 117 tabSelectedLeftFile = "assets/tabBar\_tabSelectedLeft.png", tabSelectedMiddleFile = "assets/tabBar\_tabSelectedMiddle.png", tabSelectedRightFile = "assets/tabBar\_tabSelectedRight.png", tabSelectedFrameWidth = 20, tabSelectedFrameHeight = 120, buttons = tabButtons } storyboard.gotoScene( "view1" )