Community Questions & Answers
"Back" button in title bar?
How would I generate a button in a new window's title bar with the "Back" arrow-alike aesthetic?
Wrap annotation title text?
Im not finding a way to wrap the title text of an annotation ...is it even possible?..I even tried to split the title and use a \n , \r or \r\n characters and mash the strings together but its not working. Has anyone found a solution when your title is...
Center title vertically and horizontally in a tab
Hi, I'm building a crossplatform mobile app -iPhone & Android- with SDK 3.1. I'm using a TabGroup. Tabs use icons and title, and it works as expected. Now if I _remove_ the icons and keep only the title on Android devices, the title displays...
How to create title bar on window
I have tried to create title bar on window but fail. Below is my coding. May I know what is wrong? How to display title bar on top of window? What I have missed? Thx ~~~ var win1 = Titanium.UI.createWindow({ title:'Title 1', }); ~~~ SDK 1.5...
Alloy Two-tabbed application - changing main title
Hi, I'm just starting with Titanium - so, please, bear with me... I started off with Alloy Two-tabbed Application template as a starting point. For the starters the target is Android tablet (1024x600 if that matters). I managed to make a menu which is...
How to show the window title
Hello everyone, My question is very simple: I would like to have my window title shown instead of the project title on the emulator: when I use this code in a project named "My Project": ~~~ var win = Titanium.UI.createWindow({ title:...
how to change title size in switch control?
I finally found how to resize a switch control with heigh and width, but font size of titleOn and titleOff is not changing. it's really too small 150x150 switch control.
windows barImage doesn't work on the device (but it works with the simulator)
Hi, I have specified an image for the bar, like this : ~~~ var window = Ti.UI.createWindow({ barImage:'./iphone/title.png' }); ~~~ it works with the simulator, but on the device (iphone 5), the image doesn't appear. An idea ? *ios:6, titanium...
title is not displayed in a Checkbox in Titanium
I've a routine to create checkboxes depending on a tag of an xml file. The title of the checkbox is not displayed on the screen. ~~~ switch (items.item(i).getAttribute("type")) { case 'checkbox': var...
Window.title doesn't work in Android
Hi all, I'm trying to set up the title attributes for a windows in Android and I can't show the title in the screen. This attributes works in Android? Thanks
Title does not show on simple window
I have started a new app and I am unable to make a titlebar appear on my window. Do I need to use tab groups to get a title bar? I do not need tabs for this app. I am testing in iPhone simulator and see the same results across 3.2-4.2 ~~~ var indexWin =...
Solution: setTitleControl - Titles are hiding behind navbuttons
Not a question actually, but a full Q&A. Just trying to help others that may have the same issue right now. I just installed the 2.1.3.GA version and had some issues with the setTitleControl method on iOS6: Titles were hiding behind left/right...
Undesired behavior with buttons !!
~~~ var button = Titanium.UI.createButton({ backgroundImage : 'image/button.png', backgroundSelectedImage : 'image/button_active.png', height : 31, width : 62, right : 106, top : 220, color : '#000', title:'HELLO' }); ~~~ This is the code I am...
Window title property randomly returns undefined after setting a value
Accessing the title property of the Window after setting it returns `undefined` in about 100 to 500 times in 1000 tests. app.js ~~~ var wrong = 0; var ok = 0; function test() { var win = Ti.UI.createWindow(); win.title = "test"; if...
Titanium SDK 2.1.0 GA Can change window title
After moving on to SDK v2.1.0 GA My App can no longer update a window title, however it can update from titleid (i18n) but what I'm trying to accomplish is to update the title dynamically. I tried to revert to SDK v2.0.3 it works, but I need the swipe...
two line title tab
Application type: mobile Platform & version: iOS 5.1 Device: iOS emulator/device Host Operating System: OSx 10.8 ~~~ var tab4 = Ti.UI.createTab({ title: L('competition'), icon: '/images/KS_nav_views.png', window:...
Create a tabbed window without a title?
Hi, How do I create a tabbed window without a title? I'm doing this at the moment, but the title always shows: ~~~ var homeWin = Ti.UI.createWindow({ url:'home.js', backgroundImage: 'images/Default.png' }); var homeTab = Ti.UI.createTab({ ...
Tableview Title Help
hi i would like to know if there is a way to have coded in two titles for each item in table view. native to iOS and Android. For example Show title of Tab on top and below that show a dollar amount or the actual option that is enabled.
Add title bar to window without tabgroup
How can I add a title bar to a window without create a tabgroup, thanks! iOS Titanium SDK 1.8.2
Increase title in annotation
Hi, Is there any way to increase the "title" in annotation? I am using some text and annotation.title does not show the whole message.
android: window title resets after re-opening the window
Hi all. In my app there is a dynamic window title that goes something like this: ~~~ var win1 = Ti.UI.createWindow({ title: 'first title', backgroundColor: '#fff' }) ... var foo = function(){ //DO SOMETHING win1.setTitle('new title'); ...
createTableViewRow title disappears on android when adding a label or button
The following works perfect for IOS but not on android, the title of the row is not showing: ~~~ var oBrandRow = Ti.UI.createTableViewRow({title:'Merk'}); oBrandRow.add(Ti.UI.createButton({ backgroundImage:'/images/arrow_gray.png', top:15, ...
Can't remove window title bar in Android
I am porting an iOS app to Android and after creating a new window and webview to browse Internet, the name of the app is at the top of the display. This only happens on Android. I don't know how to remove this bar across the top. Here is my...
how to change my app title in chinese
i can change my title in english,but i can't change my app title in chinese. the error is Traceback (most recent call last): File "/Users/apple/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.v20120418121806/iphone/builder.py", line...
How can I get the title of the selected tablerow when I click on it?
How can I get the title of the selected tablerow when I click on it? I tried this: ~~~ var my_table = Titanium.UI.createTableView({ top:'30%', bottom:'30%', backgroundColor:'#ffffff', font:{fontFamily:'Arial',fontWeight:'bold',...
Window doesn't show title bar!
Hi, I'm trying to create a new window with a title bar, label, and close button but the title bar is not showing. Can someone help me please? This is my code: ~~~ testbutton1.addEventListener('click', function() { var...
NavigationGroup gets no title when opening TabGroup
When I open a TabGoup with a NavigationGroup, the NavigationGroup does not get a title. I have made an example: http://pastie.org/1408238 I have even tried to use a Windows as container for the tabGroup, but it does not look like a tabGroup wants to be a...
Hide the title on a TableViewRow
I want to hide the title on a TableViewRow. However I must set the title because I'm using a search bar and it can't set it to blank because the searchbar searches into the row title itself... So unless I can "say" to the searchbar to look into...
How do I get values from a non-Date/Time Picker?
I have a second problem with those pickers in Titanium mobile. Datetime and Time pickers worked nicely now for me. But now I created a simple picker with 3 rows and nothing works! Unfortunatly, I have no clue how to get the values of this kind of...
Custom font in window title
I am looking for a way to set a custom font for the title of a window. Does anyone know of a way to do such a thing? I'm using Developer version 1.2.2 and working on iOS
NavBar buttons cling to gether!
Hi, I have a window in a tab with a NavBar with left & right buttons. After certain no of toggling between the tabs, on that particular window the buttons in the Navbar cling to gether !! , If i continue to toggle they are back to normal. how to fix...
Button: title & icon align
Hi all, I was wondering if is possible to create a button where the icon is on the top, and the title is on the bottom. Thanks and regards
Detect taps on window title.
Hello, I am developing an iOS app. How can I detect when the user taps the title of the window (the title in the navbar)? Thankful for all input!
Android - Opening a window without the title
Hi, I have the following ~~~ var win = Titanium.UI.createWindow({ url:'call-active.js', title: '', }); Titanium.UI.currentTab.open(win,{animated:true}); ~~~ And what I want is to have NO title bar. But if I leave...
Popover without title bar
i was able to hack Ti code so as to display a popover without the title bar 1. on xcode open TiUIiPadPopoverProxy.m located under build>iphone>classes in your project directory 2.replace the following block of code ~~~ -(UIPopoverController...
Fit button width to title's width
I'm trying to create a button whose width automatically fits its title's width. I've been trying to set some values to width and height properties and I've noticed this behaviour: - If no values are set to height and width, the button takes up the whole...
Button title
I use this code with buttons but every time I clicked in any button the text of last button only changed.. ` for(var i=0;i<5;i++){ var followButton = Titanium.UI.createButton({ title: 'Follow', _index:...
Change tab title on Android?
For starters I need to say that this is my first day developing with Titanium. But I haven't found any answer to how to accomplish this after spent way too much time googling the issue. ### I have a problems trying to change a tab's title...
Alert Dialog header - left aligned
Hi, When I added an alertDialog in Android, I found that the title in the alertdialog box is left aligned. Is it possible to align it to the center instead? It is aligned to the center by default in case of iPhone. I am using Ti 1.7.2, Android 2.2. Thanks.
Add a title to a new window in Titanium
I'm trying to open a new window via a button to the configuration page but how do you add a title (at the top of the screen) to a newly created window? On the starting page, I have a button created to open a new page as: var btnConfig =...
How can i hide titlebar on a window
var win1 = Titanium.UI.createWindow({ backgroundColor:'#fff', barColor:'#005524', url:'main_windows/homepage.js' }); what command can i write so it doesnt put the title on top, on the bar.
Modal window on Android
Hello I have a modal window on Android, and it doesn't have a title even when I set the title property. The application is full-screen. I would like to have this modal window with a title. Can I do this? Thank you
What is the color used in Table View section head text?
Hello , What is the color used in Table View section head text? Thank you
How do I create a window title when not using TabView?
I have been studying the kitchen sync app and wish to create a view that is represented in window_navbar.js. Unfortunately I can't seem to get the navbar or title to show. I've even included the whole window_navbar.js file in my app.js file except for the...
Can not change button title
Here is my code: app.js ------ ~~~ Titanium.include('sub/mainWin.js'); var mainWin = new mainWindow(); mainWin.openWin.title =...
How does Kitchen Sink Example get the Tab Names?
Hi, Maybe its a stupid question, but I somehow cant figure out how the kitchen sink example get its Tab Names? In the app.js code, I can find this: http://pastie.org/1863396 When I run the app, it shows this tab name as "Controls" with an...
Toolbar on opened window
I'm opening an "About" window, which isn't one of my tabs (and I don't want it to be. I've found two ways of doing it, the first using createWindow and the activeTab.open method. The problem with this is that there's no control over the...
Title not showing up on window with tabgroup
Hi, I'm using Android APIs 2.2, Titanium 1.6.2. I created a window with tabgroups, and gave it a title. However, The window's title does not show up. Is there any way to make it show? Here is my code: app.js ~~~ var win = Ti.UI.createWindow({ //...
Custom font not aligning properly within window titles
When embedding a custom font (TradeGothicLTStd-BoldObl) in a window (by setting Window.titleControl to a custom Label) I'm unable to get the font text to center within the title area, or to force it down vertically. I have tried setting top, bottom, width...
Show window title on window.leftNavButton but not on window itself
This might be a bit odd but the client would like to hide the window title on the actual page itself but display the title on the next window's leftNavButton object. As far as I've found this is a bit tricky because the only way to hide just the window...
Showing 1-50 of 73 1 2