Permalink
Browse files

add calday images

  • Loading branch information...
1 parent 307dc1f commit 2ee41aba718d8b431916e827382618a7b433acc4 @yonestra committed Feb 5, 2012
View
@@ -134,17 +134,25 @@ var cal = function(date){
calView.add(dayImage);
} else {
Ti.API.info("f"+i+" : "+YYYY+MM+DD + ".png");
- var dayLabel = Ti.UI.createLabel({
- color:'black',
- font:{fontSize:12},
- width:'auto', height:'auto',
+ var day = i + 1;
+ var dayView = Ti.UI.createView({
+ // width:'auto', height:'auto',
// textAlign:'center',
- text:i+1,
- date:d,
- top: 5, left: 5
+ backgroundImage: 'images/calday/' + 1 + '.png',
+ date:d
});
+ // var dayLabel = Ti.UI.createLabel({
+ // color:'black',
+ // font:{fontSize:12},
+ // width:'auto', height:'auto',
+ // // textAlign:'center',
+ // text:i+1,
+ // date:d,
+ // top: 5, left: 5
+ // });
// Ti.API.info("f"+i+" : "+dayLabel);
- calView.add(dayLabel);
+ calView.add(dayView);
+ // calView.add(dayLabel);
}
if(cols != 3){
cols++;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2ee41ab

Please sign in to comment.