Community Questions & Answers
Internationalization in ButtonBar labels using Alloy
Hello. I have a Map View with a ButtonBar at the bottom. I need the text of the labels in the ButtonBar to change according to the language of the phone. In order to achieve this I use internationalization. But I get an error everytime I run my code. I'm...
Alloy - buttonbar inside toolbar not working.
I'm trying to get toolbar at bottom of window with one buttonbar inside. ~~~ <Alloy> <Window id="summaryWindow" class="tabWindow" title="Summary"> <ScrollView id="summaryScroll"...
Flip graphics and text with button bar
I am trying to flip graphics and text between two buttons but one, the text keeps appearing on top of each other instead of disappearing and replacing and; two, how do I set the text to automatically appear in button one? I am coding for iOS and using the...
buttonbar event fire
Hi, I have a buttonbar with 3 buttons and three corresponding views. Is it possible to fire an event on the button bar without the user pressing a button? In other words, I want to move from one view to another automatically, simulating a user clicking on...
Native iOS buttons look and feel.
On my Window I have LeftNavButton set to one SystemButton and RightNavButton set to ButtonBar with several Labels elements. I would like to see buttons displayed in ButtonBar to have same dark grey background as SystemButton on the left. I tried to setup...
Change color of button background in iOS navigation bar?
I have a button I'd like to set as the right nav button in my main buttonbar, but no matter what I do it only takes on the color of the buttonbar itself. Is there no way to override this? ~~~ var btnSimpleBegin = Ti.UI.createButton({ title :...
Button Bar label font size not change
Hi all, I am using latest titanium studio and latest titanium sdk. I can not change button bar label font size in alloy. please help me to solve my problem ~~~ <ButtonBar platform="ios" onClick="buttonBar" fontSize =...
Index Problems with ButtonBar
So I have been using a ButtonBar in my app that has 4 options: ~~~ var progressBar = Ti.UI.createButtonBar({ labels:['Nothing', 'Found', 'Bought',...
Button in between NavigationGroup and TableView (iOS)
I would like to add a bar of buttons in between a navigation bar and a table view. The buttons in this bar would change the grouping and sorting of the contents in the table. Which control should I use for the button bar and where in this hierarchy of...
How to positon a buttonbar below the navbar?
var win = Titanium.UI.currentWindow; win.backgroundColor = 'black'; var bb1 = Titanium.UI.createButtonBar({ labels:['Btn1', 'Btn2', 'Btn3', 'Btn4'], style:Titanium.UI.iPhone.SystemButtonStyle.BAR }); var flexSpace =...
ButtonBar for Android
I was able to create a rough version of the iPhone ButtonBar for Android. See [screenshot](http://img685.imageshack.us/i/screenshotfs.png/) and the code below: ~~~ var spacer = Math.round(Ti.Platform.displayCaps.platformWidth*0.25); var width =...
createButtonBar vertical property
Hi all, I'm new to Appcelerator and I'm reproducing my jQuery Mobile app to a more native app (via Appcelerator). In jQuery there is a thing like a controlgroup. This is a vertical list with buttons. The best Appcelerator alternative I've found is the...
Getting a button bar to 'latch' on the pressed button
I have several button bars (created dynamically), each with their own event listeners (also created dynamically). I want the button pressed to remain selected, but can't achieve this. I'm trying to do this by getting the index of the selected button, then...
buttonBar or tabbedBar
Hi, I wan to display buttons like this : when i click, the clicked button looks like in the image. should i use buttonsBar or tabbedBar...? thanks...
ButtonBar buttons dont actually disable for some reason?
Im creating a button bar, but I need to have the first two options diabled, and so i placed that into the initial variables, but this isn't working for some reason. Any Ideas? ~~~ var thebuttons = [ {title:'<<', width:40,...
ButtonBar - label color
How do you change the color of the label on a button bar...?
Popover not displaying properly over buttonbar
I've got an iPad app with a buttonbar set as the rightNavButton. The buttonbar has 3 labels/buttons. Two of these three buttons trigger a popover to appear. The arrow at the top of the popover always points at the center button, regardless of which button...
Can't change the font size of a ButtonBar button
Hello, i do // create the button var aBtn = Ti.UI.createButtonBar({ labels: [T(aLabel)], backgroundColor: aColor, style: Ti.UI.iPhone.SystemButtonStyle.BAR, font: {fontSize:24}, width: "auto", height: "auto" }); yet the...
The application has stopped unexpectedly ....
Hello everybody, i tested this simple code: ~~~ Titanium.UI.setBackgroundColor('#000'); var maFenetre = Titanium.UI.createWindow(); maFenetre.open(); var bardeBouttons =...
Buttonbar open page in app.js
Hi Folks, So I have a button bar in my nav bar. I'm trying to get it to open a page when I click on it, but I cant get it to work and cant figure it out for the life of me! I'm getting the error : message = "'undefined' is not an object (evaluating...
TableView filter
Hi, I have a tableview full of data, with a search filter at the top. I'd like to be able to filter the data by a button bar at the bottom. Each button has a different value for a parameter that all rows have. Is there a way to do this? If you need more...
ButtonBar / Toolbar Background Image
Is it possible to use a custom background image instead of the standard iPhone style backgrounds for either a button bar, tab bar, or toolbar? Thanks
How to navigate tabs within another tabgroup in iOS?
I have a tabbed iPad application. On one of my tabs, I have a button bar and a view. I need to display a different view depending on which button is active in the button bar. I know how to get the event index of the bar, and I've done this with a web...
Radio style selection
I am trying to do something that initially seemed simple but has me stomped. I am trying to have a button group that: - May have one of three buttons pressed initially - Can only have one button selected at a time - All buttons can be deselected by...
ButtonBar bug.
Hi, I do believe i've discovered a bug in buttonBar. Lets say you create a button bar, and then add this to a window. If the button bar has 3 labels, each label is identified as 0, 1 , 2 etc I guess you could use a switch command to manage them. If...
Possible to change color of iPhone 'PLAIN' button style?
BAR style buttons can be given a color or inherit from their ButtonBar.No matter what I do (setting barColor of buttonBar, backgroundColor of button, barColor of window, and more), buttons in a buttonBar with `style: Ti.UI.iPhone.SystemButtonStyle.PLAIN`...
Custom positioning images/text in buttonbar
Is it possible to place an image at custom location in buttonbar? If I place it using `labels`, it is always centered whereas, if I create an ImageView and then add it to the ButtonBar, it prevents the button from being clicked.
Button Bar label object initial "enabled" value is ignored ??
By adding the following buttonBar to a tableViewRow, the initial enabled value seems to be ignored on iPad simulator. When the tableView is opened, both button appear to be enabled. Any clue? ~~~ var buttons = [ {title:'Disabled', width:100,...
how can i make ButtonBar for android os
I have a few buttons and i can't make button bar for android! I know that it is not working in android this UI, is there alternative solutions?
Titanium.UI.ButtonBar it's just for iOS... isn't it?
Hello... I need to understand this: I've been pulling my hair for 2 hours becouse my project was crushing in Android but not iOS. The actual reason is Titanium.UI.ButtonBar is not supported in Android (in KitchenSink controls.js it's added only if...
Customising webView Controls
I looked at the code examples from Kitchen Sink and successfully implemented the back, reload and forward buttons for a webView. I like the buttons but I don't like the background bar it sits on, is there anyway to remove/make this transparent? Here's...
ButtonBar separator removing
I made buttonbar with 2 labels and image at those labels, but at simulator it shows 1px separator between those labels. Is there any possibility to remove it? Here's my code: ~~~ var arrowsLabel = [ { width: 41, height: 30, image:...
How to change buttonbar image by click
hi, i am trying to change the image of buttonbar after it was clicked my code: var navBarButtonsObjects = [ {image:'images/button-Map1.png',height:32,width:55}, {image:'images/button-Reg-activ.png',height:32,width:55} ]; var navBarButtons =...
ButtonBar not receive events in iPad landscape orientation (iOS)
A strange case here. this code works fine on emulator (iPhone/iPad) and runs fine on device (iPhone) in landscape and portrait. **But**, on an iPad in landscape orientation, the buttonbar does not receive any event (buttons does not change at all and...
Anyone else seeing buttonbar throw index of -1 ??
Using SDK 1.7.5 and the button bar doesn't seem to be working. Have 2 options, set the index variable to 0 so the first one appears as pressed. Press the other and now none are pressed, query the index property now and it returns as -1 ? I can catch the...
iOS: Usage of a systemButton in ButtonBar
Hi all, I was wondering whether it is possible to use iPhone SystemButtons in a ButtonBar? It doesn't work for me. Tried for example like that: ~~~ var labels = [{systemButton: Ti.UI.iPhone.SystemButton.ADD}]; Ti.UI.createButtonBar({labels:...
Buttonbar on 'click' strange behaviour
Sdk: 1.7.0 IOS: 4.3 Mac OS X: 10.6.7 this is part of my buttonbar creation code: ~~~ af.ui.createButtons(wind) { var bb = Ti.UI.createButtonBar({ labels: [ { title: L('credits') }, { title:...
Kitchensink 'buttonbar' issue
I extracted the buttonbar.js into my project and created an app.js like this, var win = Ti.UI.createWindow({ url:'buttonbar.js' }) win.open(); Everything but the bottom toolbar and top 'Button Bar' shows. Is there something needing initialized...
embedding a buttonBar or tabBar within a horizontal scrollView
This seems like such a natural fit, has anyone done this? I can't seem to get it to work... I've all but given up trying to get buttonBar or tabBar to work within the scrollView, but here's an attempt to get this working with labels - which also...
Change button color on iOS?
You can easily change the button-colors (iPad) of ButtonBars by applying `style:Titanium.UI.iPhone.SystemButtonStyle.BAR` to it. However when you do that for Buttons it adds an arrow-icon to the button and it doesn't look like it should. So how do I...
Android: adding buttonBar causes crash
Hi Everyone, Titanium SDK 1.6.0 Android SDK: APIs 2.2 Environment: Mac OS X 10.6.6 The following code works fine on iPhone, but causes a crash on the Android simulator ("Sorry, the application...has stopped unexpectedly. Please try...
titleControl object not working in 1.5.1
For a weird reason the 4 buttons that I had in the buttonBar are now at a wrong position. Here's my code: ~~~ var buttonObjects = [ {title:'Atlantique', width:76}, {title:'Manche', width:60}, {title:'Mediterranée',...
fontSize in iPad not work
In some objects such as TabbedBar and ButtonBar the properties of Font in iPad do not work. And the iPhone style (ex: Titanium.UI.iPhone.SystemButtonStyle.BAR) either. var bbtime = Titanium.UI.createTabbedBar({ labels:['Hola', 'Mundo'], font:{fontSize:8} });
ButtonBar ?
Hi, Two days of coding and I am really creating an iPhone App :) Question, is it possible to "disable" or "hide" a button within a button bar? For exmaple bb1 is a buttonbar... bb1.index[0].visible=false; Regards, Joakim
NullPointer exception when creating a ButtonBar on Android
When I try to create a ButtonBar I get a NullPointer exception in the platform code: %<-------------------- [TRACE] D/TiApplication( 1117):...
2 buttons with 2 different views - display error when navigating back
I've managed to get two buttons to open up two different views using the code below. However, when I navigate back to the first/main page (using the back button in the top left hand corner) only one of the buttons appears. The button that appears is always...
setRightNavButton() causes app crashes
I encounter a weird issue this afternoon. I found in my new app I don't be allowed to set ButtonBar to a Window, however which works well in my last app. I am on Ti 1.4 with iOS 4.0.1, does anyone know what happened to me? Thanks. ~~~ var win =...
ButtonBar won't show
Hello, I'm trying to set a ButtonBar on my NavBar, however it doesn't show no matter what I do. My code is: // create tab group var tabGroup = Titanium.UI.createTabGroup({ barColor:'#336699' }); var win1 = Titanium.UI.createWindow({ ...
How to show selected buttonBar
Hi I am wanting to show the selected button in a buttonBar after the user clicks on one of the button options. So when they select a button it becomes disabled, and when they select another button it becomes disabled and the other button...
Kitchensink's Button bar sample bug in sdk 1.4.1
I try Kitchensink's Button bar sample in sdk 1.4.1, the Buttonbar display in navBar and toolBar wrong, in 1.4.0 is ok. ~~~ var bb3 = Titanium.UI.createButtonBar({ labels:['One',...
Showing 1-50 of 57 1 2