Browse files

updated font coloring for android

  • Loading branch information...
1 parent ccc7f6e commit 4f5106553d8584bb9c8685518d6eec6a68b237cc @tonylukasavage tonylukasavage committed Apr 15, 2012
View
1 Resources/ui/common/BaseUIWindow.js
@@ -50,6 +50,7 @@ function BaseUIWindow(title) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
1 Resources/ui/common/ControlsWindow.js
@@ -31,6 +31,7 @@ function ControlsWindow(title) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
1 Resources/ui/common/MashupsWindow.js
@@ -20,6 +20,7 @@ function MashupsWindow(title) {
data.push({title:'SOAP', hasChild:true, test:'ui/common/mashups/soap'});
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
1 Resources/ui/common/PhoneWindow.js
@@ -42,6 +42,7 @@ function PhoneWindow(title) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
1 Resources/ui/common/PlatformWindow.js
@@ -37,6 +37,7 @@ function PlatformWindow(title) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
3 Resources/ui/common/baseui/image_views.js
@@ -1,5 +1,5 @@
function image_views(_args) {
- var win = Ti.UI.createWindow();
+ var win = Ti.UI.createWindow({backgroundColor:'#fff'});
// create table view data object
var data = [
{title:'Basic', hasChild:true, test:'ui/common/baseui/image_view_basic'},
@@ -28,6 +28,7 @@ function image_views(_args) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
3 Resources/ui/common/baseui/scroll_views.js
@@ -1,5 +1,5 @@
function scroll_views(_args) {
- var win = Ti.UI.createWindow();
+ var win = Ti.UI.createWindow({backgroundColor:'#fff'});
// create table view data object
var data = [
{title:'Basic', hasChild:true, test:'ui/common/baseui/scroll_views_basic'},
@@ -19,6 +19,7 @@ function scroll_views(_args) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
3 Resources/ui/common/baseui/table_view_basic.js
@@ -1,5 +1,5 @@
function tv_basic() {
- var win = Ti.UI.createWindow();
+ var win = Ti.UI.createWindow({backgroundColor:'#fff'});
// create table view data object
var data = [
{title:'Row 1', hasChild:true, color:'red', selectedColor:'#fff'},
@@ -11,6 +11,7 @@ function tv_basic() {
];
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
1 Resources/ui/common/baseui/table_views.js
@@ -75,6 +75,7 @@ function table_views(_args) {
data.push({title:'Dynamic Scrolling', hasChild:true, test:'ui/handheld/ios/baseui/table_view_dynamic_scroll'});
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableViewOptions = {
data:data,
headerTitle:'TableView examples and test cases',
View
3 Resources/ui/common/baseui/vertical_layout.js
@@ -1,5 +1,5 @@
function vertical_layout(_args) {
- var win = Ti.UI.createWindow();
+ var win = Ti.UI.createWindow({backgroundColor:'#fff'});
//create table view data object
var data = [
{title:'Basic', hasChild:true, test:'ui/common/baseui/vertical_layout_basic'},
@@ -8,6 +8,7 @@ function vertical_layout(_args) {
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
3 Resources/ui/common/baseui/views.js
@@ -1,5 +1,5 @@
function views(_args) {
- var win = Ti.UI.createWindow();
+ var win = Ti.UI.createWindow({backgroundColor:'#fff'});
//create table view data object
var data = [
{title:'Events Propagation', hasChild:true, test:'ui/common/baseui/view_event_propagation'},
@@ -49,6 +49,7 @@ function views(_args) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
3 Resources/ui/common/baseui/web_views.js
@@ -1,5 +1,5 @@
function webviews(_args) {
- var win = Titanium.UI.createWindow();
+ var win = Titanium.UI.createWindow({backgroundColor:'#fff'});
// create table view data object
@@ -43,6 +43,7 @@ function webviews(_args) {
}
// create table view
+ for (var i = 0; i < data.length; i++ ) { data[i].color = '#000'; data[i].font = {fontWeight:'bold'} };
var tableview = Titanium.UI.createTableView({
data:data
});
View
13 Resources/ui/common/mashups/twitter.js
@@ -227,16 +227,16 @@ function getTweets() {
var created_at = prettyDate(strtotime(tweets[c].created_at));
var bgcolor = (c % 2) == 0 ? '#fff' : '#eee';
- var row = Ti.UI.createTableViewRow({hasChild:true,height:'auto',backgroundColor:bgcolor});
+ var row = Ti.UI.createTableViewRow({hasChild:true,height:'120dp',backgroundColor:bgcolor});
// Create a vertical layout view to hold all the info labels and images for each tweet
var post_view = Ti.UI.createView({
- height:'auto',
+ height:'120dp',
layout:'vertical',
left:5,
top:5,
bottom:5,
- right:5
+ right:5,
});
var av = Ti.UI.createImageView({
@@ -255,7 +255,7 @@ function getTweets() {
width:120,
top:-48,
bottom:2,
- height:16,
+ height:18,
textAlign:'left',
color:'#444444',
font:{fontFamily:'Trebuchet MS',fontSize:14,fontWeight:'bold'}
@@ -280,11 +280,12 @@ function getTweets() {
var tweet_text = Ti.UI.createLabel({
text:tweet,
left:54,
- top:0,
+ top:4,
bottom:2,
height:'auto',
- width:236,
+ width:230,
textAlign:'left',
+ color: '#000',
font:{fontSize:14}
});
// Add the tweet to the view
View
2 tiapp.xml
@@ -7,7 +7,7 @@
<target device="android">true</target>
<target device="blackberry">false</target>
</deployment-targets>
- <sdk-version>2.0.0.v20120322091832</sdk-version>
+ <sdk-version>2.1.0.v20120411154414</sdk-version>
<id>com.appcelerator.kitchensink</id>
<name>KitchenSink</name>
<version>1.0</version>

0 comments on commit 4f51065

Please sign in to comment.