Skip to content

Instantly share code, notes, and snippets.

View MotiurRahman's full-sized avatar

Motiur Rahman MotiurRahman

View GitHub Profile
@MotiurRahman
MotiurRahman / app.js
Last active October 29, 2019 13:44
setUsername and setMetadata Test
var win = Ti.UI.createWindow({
backgroundColor : '#fff'
});
// Create a Button.
var ACATest = Ti.UI.createButton({
title : 'ACATest',
color : "red",
height : Ti.UI.SIZE,
width : Ti.UI.SIZE,
@MotiurRahman
MotiurRahman / app.js
Created October 24, 2019 12:51
ACA Module test
var win = Ti.UI.createWindow({
backgroundColor : '#fff'
});
// Create a Button.
var ACATest = Ti.UI.createButton({
title : 'ACATest',
color : "red",
height : Ti.UI.SIZE,
width : Ti.UI.SIZE,
@MotiurRahman
MotiurRahman / app.js
Created October 15, 2019 18:03
Custom Object
var win = Ti.UI.createWindow({
backgroundColor : '#fff'
});
// Create a Button.
var login = Ti.UI.createButton({
title : 'login',
color : "red",
height : Ti.UI.SIZE,
width : Ti.UI.SIZE,
@MotiurRahman
MotiurRahman / app.js
Created October 11, 2019 13:35
TableView with SearchBar
var window = Ti.UI.createWindow({});
var searchView = Titanium.UI.createSearchBar({
barColor : '#000',
showCancel : true,
height : 43,
top : 20,
});
var tbl_data = [{
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow({
exitOnClose : true,
layout : 'vertical',
backgroundColor : 'red'
});
var picker = Ti.UI.createPicker({
top : 50,
@MotiurRahman
MotiurRahman / module.xcconfig
Created September 24, 2019 03:25
ModuleFile
//
// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE
// PICKED UP DURING THE APP BUILD FOR YOUR MODULE
//
// see the following webpage for instructions on the settings
// for this file:
// https://developer.apple.com/library/content/featuredarticles/XcodeConcepts/Concept-Build_Settings.html
//
//
@MotiurRahman
MotiurRahman / app.js
Last active September 27, 2019 12:44
accuracyTest
// Ti SDK 8.2.0.GA
// Device v6.0.1 HTC m8 eye
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
// Create a Label.
var aLabel = Ti.UI.createLabel({
text : 'accuracy',
@MotiurRahman
MotiurRahman / app.js
Last active September 6, 2019 14:34
Simple Location Service
var win = Ti.UI.createWindow({
backgroundColor : 'white'
});
function getLocation() {
Titanium.Geolocation.getCurrentPosition(function(e) {
if (e.error) {
alert('Error: ' + e.error);
} else {
alert(e.coords);
@MotiurRahman
MotiurRahman / app.js
Created August 26, 2019 15:08
TextArea in landscape mode.
var win = Titanium.UI.createWindow({
title : 'Pin Example',
backgroundColor : 'white'
});
var view = Ti.UI.createView({
backgroundColor : 'white',
layout : 'vertical',
top : 20
});
@MotiurRahman
MotiurRahman / app.js
Created June 21, 2019 12:45
How to calculate the height of the status bar.
var win = Ti.UI.createWindow({
title : "title",
backgroundColor : '#fff'
});
var Activity = require('android.app.Activity');
activity = new Activity(Ti.Android.currentActivity);
// status bar height