aboutsummaryrefslogtreecommitdiffstats
path: root/Resources
diff options
context:
space:
mode:
authorNikita Bernstein2012-06-24 03:30:19 -0400
committerNikita Bernstein2012-06-24 03:30:19 -0400
commit5a3c15c887f1d13e6ad7a22abc1018cbb6ac1a97 (patch)
tree9677d89551938f9b272d5b4324af01ce402b9988 /Resources
parentf5ea30dacb5c8c1681ad73454e6193b3d06da8bd (diff)
downloadLikeFeed-5a3c15c887f1d13e6ad7a22abc1018cbb6ac1a97.tar.bz2
Revert "Restoring info"
This reverts commit 4b92e87d0e33800ceb2b8c2de2b3ddab35512dc5.
Diffstat (limited to 'Resources')
-rw-r--r--Resources/friendship/ui/LikeList.js41
1 files changed, 37 insertions, 4 deletions
diff --git a/Resources/friendship/ui/LikeList.js b/Resources/friendship/ui/LikeList.js
index eb16bfc..93a7814 100644
--- a/Resources/friendship/ui/LikeList.js
+++ b/Resources/friendship/ui/LikeList.js
@@ -19,9 +19,10 @@
pic_square: "images/fb_test_profile.jpg",
name: "Test Name",
description: "Description Description Description Description Description Description Description Description Description Description Description Description ",
+ fan_count: "1000000000000000",
page_url: "http://www.google.com",
website: "http://www.google.com",
- website: "http://www.google.com"
+ type: "SHOW"
} )
);
@@ -32,6 +33,8 @@
description: "Description Description Description Description Description Description Description Description Description Description Description Description ",
fan_count: "2",
page_url: "http://www.google.com",
+ website: "http://www.google.com",
+ type: "BOOK"
} )
);
}
@@ -83,16 +86,44 @@
top: 0,
opacity:0.65,
left: 0,
+ height:'12'
});
fan_c.top = 50-fan_c.height;
if( fan_c.width < 10 ) fan_c.width = 10;
+
+ var item_type = Ti.UI.createLabel({
+ text: " " + key.type + " ",
+ font:{fontSize:11,fontWeight:'single'},
+ color:'white',
+ backgroundColor: '#b0d3a4',
+ width:'auto',
+ textAlign:'left',
+ top:2,
+ left: profile_icon.width + 2,
+ height:'auto'
+ });
+
+ var liked_by = Ti.UI.createLabel({
+ text: " Friend Bob ",
+ font:{fontSize:11,fontWeight:'bold'},
+ color: 'white',
+ backgroundColor:"#d1d5e0",
+ width:'auto',
+ textAlign:'left',
+ top:2,
+ left: item_type.left + item_type.width + 2,
+ height:'auto'
+ });
+
var title = Ti.UI.createLabel({
text:key.name,
font:{fontSize:12,fontWeight:'bold'},
width:'auto',
textAlign:'left',
+ top:item_type.height + 2,
+ left: profile_icon.width + 4,
height:'auto',
wordWrap:'true'
});
@@ -105,18 +136,20 @@
font:{fontSize:12,fontWeight:'single'},
width:'auto',
textAlign:'left',
- wordWrap:'true',
+ top: title.top + title.height-5,
+ left:profile_icon.width + 4
});
row.height = 50;
- row.height = 'auto';
row.add( profile_icon );
// row.add( thumb_icon );
row.add(fan_c);
row.add( title );
+ row.add(liked_by);
+ row.add( item_type );
row.add( description );
return row;
@@ -124,11 +157,11 @@
fs.ui.createLikeList = function() {
var ll_view = Ti.UI.createTableView();
- ll_view.maxRowHeight = 150;
var loading = fs.ui.createLoadingView();
ll_view.add(loading);
+ add_test_data( ll_view );
//Ti.App.fireEvent('app:show.loader');