Skip to content

Instantly share code, notes, and snippets.

@rakhimoni
rakhimoni / app.js
Created October 26, 2017 10:51
Cannot use setTabs() multiple times on a tabGroup + splitWindow
(function() {
var win = Ti.UI.createWindow({title:'Test', layout:'vertical',backgroundColor:'Gray'});
var btn1 = Ti.UI.createButton({title:'Set Tabs 1',top:'100'});
var btn2 = Ti.UI.createButton({title:'Set Tabs 2',top:'100'});
win.add(btn1);
win.add(btn2);
btn1.addEventListener('click', function() {
@rakhimoni
rakhimoni / app.js
Created October 26, 2017 06:31
List view with large Image
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var plainTemplate = {
childTemplates: [
{
type: 'Ti.UI.Label', // Use a label
bindId: 'rowtitle', // Bind ID for this label
properties: { // Sets the Label.left property
//left: '10dp'
@rakhimoni
rakhimoni / app.js
Created October 25, 2017 11:05
Ti.Media.AudioPlayer/AudioRecorder is not working as expected on android 7 device.
We have tested this issue with SDK 6.2.2.GA on device Huawei GR3 2017 android 7. Using the sample code provided by the client does not provide expected output. We also tested the sample API code from [here| the http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.AudioRecorder it works as expected in lower android devices (android 6,4) but provides error on android 7 devices.
Test Environment:
Appcelerator Command-Line Interface, version 6.2.4
Mac OS X 10.12.6
Architecture 64bit
CPUs 4
Appcelerator Studio, build: Axway Appcelerator Studio, build: 4.10.0.201709271713
Appcelerator Command-Line Interface, version 6.2.4,
@rakhimoni
rakhimoni / app.js
Created September 10, 2017 05:58
Simple Email Dialog with Attachment on IPAD Device
/*
Appcelerator Command-Line Interface, version 6.2.3
Operating System Mac OS X 10.12.3
Node.js Version 4.7.0
Titanium SDK 6.0.3.GA
iOS Simulator: iPad Air
*/
@rakhimoni
rakhimoni / app.js
Created September 14, 2016 07:35
Moving if different windows
var win = Ti.UI.createWindow({
fullscreen:true,
backgroundColor:'red'
});
var button = Titanium.UI.createButton({
title: 'Push me',
top: 10,
width: 300,
height: 100
@rakhimoni
rakhimoni / app.js
Created September 8, 2016 04:34
EnterRegions event on iOS Geofence module
var Geofence = require("ti.geofence");
var window = Ti.UI.createWindow({
backgroundColor: 'white'
});
var titleInWinA = Ti.UI.createLabel({
text: 'Receiving location ... ',
left: 70,
top: 100,
});
@rakhimoni
rakhimoni / index.js
Last active August 30, 2016 04:49
Get Button ID in alloy
$.basicsWindow.addEventListener('click', function(e) {
$.recognizeButton.title="Hello";
$.recognizeButton.backgroundColor="orange";
});
$.basicsWindow.open();
@rakhimoni
rakhimoni / app.js
Created July 25, 2016 10:35
Click event on tabgroup
Test code:
////////////////////////////
var win1 = Ti.UI.createWindow({
backgroundColor: 'blue',
title: 'Blue'
});
win1.add(Ti.UI.createLabel({text: 'I am a blue window.'}));
@rakhimoni
rakhimoni / index.js
Created June 2, 2016 06:45
Windows: Load local content into webview
$.index.open();
@rakhimoni
rakhimoni / intractions.doc
Created June 1, 2016 08:36
How to install appxbundle on windows phone
To install appxbundle on windows phone via computer we need to make sure the windows device is unlocked and Microsoft visual studio is installed in the computer. Check the following steps:
Step 1. Connect the windows phone to the computer. Open Microsoft visual studio> Navigate to Tools> Windows Phone 8.1 > Application Deployment
Step 2. Select the target to device and browse the appxbundle from computer.
Step 3. After waiting some time, the application deployment window will provide the app completion status. Then press Deploy button and check in the windows phone device .