Community Questions & Answers
Formatting strings from i18n
How do I format or stylise a string? I want to make it bold, but not the entire string. Just certain segments in the string; "Operating in one form or another since <b>1898</b>", but this markup method doesn't seem to work although...
Legal to Use Custom Image for a Button in the LeftNavButton of a ToolBar?
Hi all- I have the below: ~~~ <NavigationGroup> <Window title='Test'> <LeftNavButton> <Button id='myButton' /> </LeftNavButton> </Window> </NavigationGroup> ~~~ Within my Alloy .tss file, I...
Where are these two iPhone System Icon
Hi all, I want to use these two system icon, but I can't find in systembuttonStyle and SystemIcon How to have these two icon??? 
Issues in Using Class Styles with Alloy in Latest Alloy Update
Hi all- Has anyone seen issues in the latest update to the Alloy framework (released the week of April 22, 2013) in using classes within tss files? I use classes extensively to style my application, and upon upgrading my framework, I noticed that my...
Alloy Modules.Facebook (3.1)
How do you use Modules.Facebook instead of Ti.Facebook for the login button in the view.xml? Also how do you set the style to WIDE?
Using common options (styles) for variables
~~~ for ( i = 0; i < 10; i++) { var YPos = 30; var Label1 = Ti.UI.createLabel({ left : 0, top : YPos , width: "50%", backgroundColor: "blue", height: 20, ...
Alloy Programmatically Add Class to Element
How do I create an element (buttons, views, labels etc) via code and assign a style classname when creating that element?
Alloy TSS Style for Android ActionBar
Hi, how can i set the backgroundImage of the ActionBar using the alloy tss style? I'm using alloy 1.0.0 and Ti-SDK 3.1.0
Changing image according to platform
Hi everyone! I'm trying to change the image of my app according to the device, mobile or tablet. What am I doing wrong? ~~~ "#header[platform=ios formFactor=handheld]" :{ image:"/images/header.png" } "#header[platform=ios...
how to make the new pull to refresh apple's style?
How to make the new pull to refresh of apple like they do in email ---> [Photo](http://www.tmcsdevelopment.co.uk/wp-content/uploads/2012/10/ApplePullToRefresh-164x163.png) I want to do that style in an app that I will develop If able... I will use this...
Sliding Menu Like Facebook
Hi there, i am using this for a sliding menu like facebook, it is really cool! but i have a question, when app opens it is blinking first showing menu then main window and it is not good :( i have put there a tabGroup but this time it is not working,...
Change background color of empty search result rows
Is it possible in anyway to change the background color of the empty tableview rows that fill up the remainder of a filtered search from a tableview? I can't find any documentation on it, and the only property the resulting rows seem to inherit are the...
alloy
Hi, is it possible to have a global style "tss file" whithin i declare a class and can use it in all applications ? thanks
Connecting ALLOY to ACS & Styling Views... HOW?
I'm still trying to figure out why Alloy is released without the basics of how to's seems like they want developers to do this for them. Many githubs don't fire up correctly or there's missing code for Alloy. Lot's of talk but no direction;.... Alloy...
Setting a Button's Font Properties with Alloy Styles
How can I set the font properties of a button using Alloy styles? I am trying the below, but the styles do not apply to the button (as they do in the Label control). Is this also possible inline within the button control, and if so, how so? Thanks in...
Organization of Style TSS files in Alloy Applications
Hi there... I have a question. In my Alloy application, I am splitting my application into several views. the views are organized into folders (grouped by functionality). Do the style/tss and controller (.js) files need to mirror the folder structure of...
Conditional Alloy Styles for tablet formFactor Not Being Applied
Hi there- I am attempting to apply a conditional style, as indicated below. When attempting to apply a conditional style for a handheld device, all is fine. For some reason, the tablet formFactor styles are not being applied. Just curious if there is...
Customize Switch
Hi Everyone, Is it possible to change the image that is used in a switch for IOS. I see there is a background image property but when I apply my image nothing changes. I am using the latest version of the TI Studio and SDK. Thanks in advance Sean
Change button style in toolbar
Is it possible to update a button style inside a toolbar (e.g. showing which button was clicked/is selected). When I try to set `_btn1.setStyle(Titanium.UI.iPhone.SystemButtonStyle.BORDERED);` or `_btn1.style =...
Custom TabGroup with Alloy
I did a project with custom tabgroup without Alloy (different color, middle bottom with different size). I trying do the same with titanium plus alloy. But, I can't do it. Any one have ideia how can I do it? Thanks.
Some questions about styling labels
Hi guys, I have some question concerning styling labels. For instance, I have some text in my database file which is fetched and placed into a label. - Is it in any way possible to add a 'bold' or 'italic' style to a specific word inside my label? - Is...
.TSS styles on tableViewRows
I have a tableView that is being dynamically populated (it doesn't change once it has been populated) I understand that we can't set the tss class name in the Controller, and that we can't yet target child elements with tss. Is there anyway to use tss...
Can I use custom lib function in alloy tss style file?
I have created a custom lib function and put in lib folder, but how can I use it in the tss file? example, my function is: ~~~ // lib/ui.js exports.customStyle = { width : 200, height: 300 } ~~~ within index.tss file, how should i use it?...
Is this a bug? Merging alloy xml styles and tss styles
Hi, Related to my layout positioning problem I noticed that there is a problem in merging alloy xml styles with tss styles. In following alloy example , last item, balance should be shown right aligned in the row. However this is not working because...
Extending alloy styles
Hi, I want to extend my globel styles with specific ones. For example I have style in app.tss called rowStyle1 and in specific examples i want to override some of the values. So what i want is in another tss file , I need to rowStyleX extends rowStyle1....
Android App - Style an array
Application type: mobile Titanium SDK: 2.1.4.GA Platform & version: Android 2.x Device: Android Samsung Galaxy S3 Host Operating System: Windows 7 Titanium Studio: Titanium Studio, build: 2.1.2.201208301612 (c) Copyright 2012 by Appcelerator, Inc....
Android App - Table View Sections
Application type: mobile Titanium SDK: 2.1.4.GA Platform & version: Android 2.x Device: Android Samsung Galaxy S3 Host Operating System: Windows 7 Titanium Studio: Titanium Studio, build: 2.1.2.201208301612 (c) Copyright 2012 by Appcelerator, Inc....
Custom search result table view.
I generate a table with this piece of code, but when i search thru it with a searchbar it doens't give any results. Any help on how to resolve this AND style the search result table view? ~~~ var data = []; for (var x=0;x<40;x++) { var image =...
Custom theme not loading?
I'm trying to style the Android tabs. I have it working on a native android application (so an app that isn't made with Appcelerator). But when i copy all the needed files over, then nothing happends. The only thing that changed is the color of the text on...
Tableview Grid Style with remote Data
Hi, I retrieve from rss the thumbnail image for each post, i want show these thumbnails in a Grid, i want that images appear in this layout --->...
Click 'radius' of Disclosure button
Hey developers, I'm using a disclosure button in my app like this: ~~~ var closeButton = Ti.UI.createButton({ height : 30, width : 30, style : Ti.UI.iPhone.SystemButton.DISCLOSURE }); ~~~ The problem with this style is when I click outside the...
Button Image White
I am wanting the glow feature for my buttons on the toolbar, and this code gives me the glow, but the actual image on the button is whited-out. Any suggestions? `var cnLogo = Ti.UI.createButton({ image:...
howto add a spacing between tableview rows
we are currently evaluating titanium for one of our next projects and it works great so far. but we run into a problem when trying to style the tableview component. we need a spacing of about 10px between each tableviewrow. the spacing should be...
Webview how to get body background color from url?
I wanted to get the body background color for any page i visit. I have the following code: ~~~ var win1= Ti.UI.createWindow({ backgroundColor:'#ffffff', navBarHidden:true, exitOnClose:true }); var label = Ti.UI.createLabel({ ...
Style tableview search
Hi I'm facing a problem and hope someone can help. I've created a tableview with a background set to 'transparent', but the problem is, that when I do a search - the tableview background is white and I can't seem to figure out where to style it? Here's...
How to change the color of a Nav bar button to Blue at runtime
If I create it like this ~~~ var online_search_bt = Titanium.UI.createButton({ title:'Online search', enabled:true, style:Titanium.UI.iPhone.SystemButtonStyle.BAR }); window.setRightNavButton(online_search_bt); ~~~ The button will be colored...
Can we using same App.jss styles whole app?
Hi, I just want to know is app.jss file will apply whole app? We can create .JSS files and import those like this below. For example:- UI.js :- var label= Titanium.UI.createLabel({ className:'mylabelstyle' }); UI.jss...
JSS not working on widows created on EventListeners
Studio 2.0.1 SDK 2.0.1 GA2 Building for iOS 4.2 I have a tab group and I also have some separate windows that I'll open eventually. I am using JSS files to set the style of my windows. In the windows that are part of the tab group JSS is working...
Overriding the always-top property of the navigation bar
Hey folks, is it possible to display something above the navigation bar, or rather more disabling, that the navigation bar always floats at top? This is how it looks right now: [Screenshot](http://data.sly.mn/GvqN). The code-snippet invoking this...
TableView style on 2.0.1GA2 SDK
Hi all. Are you having any problems setting the style of a tableView to a grouped table? LEt me try to explain what is happening to me from the 2.0.1GA2 SDK: This works: ~~~ var myTableView =...
SystemButton and SystemButtonStyle
Hi all! I'm trying to add a button into a "createToolbar" but I can't find a way to make it look like a Navbar button. I know I can use SystemButton and SystemButtonStyle to style the button but, don't know why, none of the options available...
Can I create a standard "back" style button (a button that points left) in the navigation bar on a web view?
I need to create a back button for several pages that are really just web views. I've managed to create a working back button, but, even after a lot of time digging, can't see how to make the button the standard "back" style button. Everyone I...
How do I access the optionDialog/actionsheet style property?
I want to change the style of my iPhone optionDialog(actionsheet) to 'translucent black' instead of the 'default' one. Anybody know if this can be done? There's nothing in the docs...
Row style when Ti.UI.iPhone.TableViewStyle.GROUPED
Hello, Is it possible to have a row without the rounded corner in a TableView when using 'Ti.UI.iPhone.TableViewStyle.GROUPED' ? I can set the backgroundColor to be transparant, but that still gives me the rounded corner and the bevel.
how to obtain buttons style like in the NavBar or Toolbar in a normal view
If I create a button and add it to a view, the default style is a rounded border white background like this: ~~~ http://www.techotopia.com/images/9/90/Xcode_4_record_ui.jpg ~~~ What I want is the button to look like these navbar style...
Style for window's bar in ios
Hi! for ios, if i create a window, the default style I get is this one: http://www.uploadup.com/di-T2YO.jpg (so a black gradient) I'd like something like that: http://www.uploadup.com/di-RLJ8.jpg Is there a way to get the result without using an...
Custom fonts from the same family
Hi, I'm using the Helvetica Neue LT Pro family of fonts in my app ([wiki Custom Fonts](https://wiki.appcelerator.org/display/guides/Custom+Fonts)). However, I can't set the weight of the font by using the normal fontWeight property because each weight and...
Change Button Style When Clicked in a toolbar
How to change a background Color for a button when clicked in a toolbar iOS ?!!!!! or to add any other effects like changing it's color or style ?!
How to Style a Back Button?
Hello all. My app uses a tab group where each tab has a table view menu with single window drill downs. I reskinned everything to match my apps look including the tabgroup drilldown back buttons and I set their click call back to theWin.close() where...
Dashboard item moves when opening a new window.
Hi! I have a funny situation here. Each time I open a window from a dashboard item click event. Before that the new window appears, the items moves. And when I go back, they don't return to the same position. I put a link to a video showing the...
Showing 1-50 of 86 1 2