Questions tagged [titanium-alloy]

An MVC-inspired Appcelerator framework for the Titanium SDK, with focus on rapid development/prototyping. Contains built-in support for Backbone.js and Underscore.js.

918 questions
3
votes
1 answer

How to create screen size independent UI in Titanium alloy

Created layout after setting the height and width of child elements based on current device screen width and height,as you can see the code snippet which calculates the width and height based on screen size for each child element. How to do the…
Rakesh Jha
  • 55
  • 6
3
votes
3 answers

close window and open a new window titanium alloy

I need to close the windows2 to open windows3. I have the next code: I'm a begginer on titanium , please help me. //Windows1.XML
aquinoaldair
  • 39
  • 1
  • 2
  • 6
3
votes
1 answer

Organizing JS code with Alloy and CommonJS in Titanium projects

I'm learning with Titanium to make iPhone/Android apps. I'm using Alloy MVC framework. I never used javascript before, apart from simple scripts in HTML to access the DOM or something like that, so I never needed to structure the code before. Now,…
Eagle
  • 978
  • 1
  • 14
  • 27
3
votes
1 answer

Alloy Back Activity in Titanium

I have experienced such a weird behaviour from titanium project using alloy that runs on android. I created a new window and then link it to another. like in android when you click button on activity 1 it refer to activity 2. when i click back…
Nicolas
  • 246
  • 1
  • 6
  • 23
3
votes
2 answers

Creating checkbox using titanium alloy

I am new in Titanium alloy and I would like to change my project from titanium default template to alloy. Below is the code for creating a text box in default template. I would like to change this to alloy template. var checkbox =…
3
votes
1 answer

How do query (where,inner join) with Alloy (appcelerator)?

I'm working on: Application Mobile with Alloy Titanium SDK version: 2.1.3 (10/02/12 16:16 15997d0) iPhone Device family: universal iPhone SDK version: 6.0 iPhone simulated device: iphone Detected compiler plugin: ti.alloy/1.0 I've created two…
user1820851
  • 35
  • 1
  • 3
2
votes
1 answer

How to remove white color circular border in google devices like pixel

any one having idea how to make icon in google pixel without white border circular. I can see chrome icon doesn't have circular border. How to make it any help ? You can see in screenshot google chrome icon looks full occupancy but other…
2
votes
0 answers

How to send object from xml view file to javascript controller file in titanium alloy?

I want to pass some data as a custom property from this xml to javascript file. xml file:
mukesh.kumar
  • 1,100
  • 16
  • 30
2
votes
1 answer

Moment JS setting TimeZone to EST - alloy/moment

I am using momentjs in alloy framework in Appcelerator. My api returns the date as - 2017-09-06T12:03:00.000Z I am using below code to format this date into readable form - var dt = moment(record.createddate); $.dateValue.text =…
2
votes
1 answer

appcelerator titanium android camera native capture photo

i am working on a cross-platform mobile app using appcelerator titanium alloy. the code below opens the native camera functionality and works fine on apple devices. on android devices, the camera opens but the button to actually take a picture is…
2
votes
2 answers

Titanium/ Alloy: Add event listener to a window

I have the following code in index.js: var win = Alloy.createController('foo').getView(); win.open(); win.addEventListener('exampleEvent', function () { Ti.API.info('Event Run!'); // does not seem to run }); on foo.js I have the…
2
votes
1 answer

Titanium/ Alloy: Reapply styles on when screen is resized

I have some basic styles like: "#foo": { backgroundColor: '#ff0000', // red } "#foo[if=Alloy.Globals.isSmallHeight]": { backgroundColor: '#0000ff', // blue } in alloy.js I have the following: function pxToDp(px){ return px /…
Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231
2
votes
1 answer

Hide the action bar on Android on Titanium/ Alloy/ Appcelerator

How do I hide the action bar on Android on Alloy/ Titanium. I have tried the following: $.index.activity.actionBar.hide() but it just throws the error: Cannot read property 'hide' of undefined The full error message is as follows: [ERROR] : …
Yahya Uddin
  • 26,997
  • 35
  • 140
  • 231
2
votes
1 answer

Is it possible display a banner for ios when receiving push notification while app is in foreground?

Currently my app can receiving push notification and display a banner when receiving a push notification while the app is in background. But however when my app is in foreground, there is no banner showing up. I look in the log and I found out that…
2
votes
1 answer

Remove gray tint from apps created with Titanium Appcelerator

In a project created in Titanium Appcelerator/Alloy I created a simple window with a TabGroup button. That button opens a modal window, which contains a NavigationBar. Without specifying anything in the TSS files, a gray tint is applied to both the…