Skip to content

Instantly share code, notes, and snippets.

View rollsroyc3's full-sized avatar

Andrew Royce rollsroyc3

  • FieldRoutes
  • Aurora Indiana
View GitHub Profile
//"THE BEER-WARE LICENSE": As long as you retain this notice you can do whatever you want with this stuff.
//If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Jamie Buckley
var screenWidth = Ti.Platform.displayCaps.platformWidth;
var screenHeight = Ti.Platform.displayCaps.platformHeight;
var win = Ti.UI.createWindow({
fullscreen: true,
width: screenWidth,
height: screenHeight,
@rollsroyc3
rollsroyc3 / gist:4357795
Last active December 10, 2015 01:19 — forked from anonymous/gist:4357794
Custom tabbar built in Titanium for ios (iphone and ipad) that was modified of the custom tabgroup found here : gist.github.com/853935 Added a larger middle icon that sticks above tabgroup
function customTabView(tabGroup) {
var isIPad = Ti.Platform.osname === 'ipad';
var maxWidth = isIPad ? 70 : 100;
var container = Ti.UI.createView({
width : '100%',
height : 80,
bottom : 0,
touchEnabled : false
});