Skip to content

Instantly share code, notes, and snippets.

@mogya
Created December 1, 2011 15:01
Show Gist options
  • Save mogya/1417382 to your computer and use it in GitHub Desktop.
Save mogya/1417382 to your computer and use it in GitHub Desktop.
俺ブラウザ
Titanium.UI.setBackgroundColor('#000');
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'俺ブラウザ',
backgroundColor:'#fff'
});
win1.tabBarHidden = true;
var webView = Titanium.UI.createWebView( {
url: "http://oasis.mogya.com/iphone/"
});
win1.add(webView);
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'俺ブラウザ',
window:win1
});
tabGroup.addTab(tab1);
tabGroup.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment