Skip to content

Commit

Permalink
alter layout to support tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopagliarulo committed Nov 8, 2014
1 parent dad3664 commit 23b8616
Show file tree
Hide file tree
Showing 48 changed files with 251 additions and 289 deletions.
Binary file modified app/assets/android/images/res-port-hdpi/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-hdpi/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-hdpi/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-hdpi/vimeo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-ldpi/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-ldpi/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-ldpi/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-ldpi/vimeo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-mdpi/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-mdpi/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-mdpi/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-mdpi/vimeo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xhdpi/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xhdpi/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xhdpi/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xhdpi/vimeo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xxhdpi/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xxhdpi/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xxhdpi/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/android/images/res-port-xxhdpi/vimeo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/images/facebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/images/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/assets/images/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/loadinfoBlue.png
Binary file not shown.
Binary file removed app/assets/images/loadinfoWhite.png
Binary file not shown.
Binary file modified app/assets/images/twitter.png
Binary file modified app/assets/images/vimeo.png
1 change: 1 addition & 0 deletions app/controllers/favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function createRow(talkData){
$.addClass(rowView,"rowView");
var title = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.title});
$.addClass(title,"listTitle");
$.addClass(title,"listTitleSession");
var speaker = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.name + " " + talk.surname});
$.addClass(speaker,"listSpeaker");

Expand Down
6 changes: 6 additions & 0 deletions app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ var defaultFont = {
fontSize : "20sp",
fontFamily : Alloy.Globals.museo_slab_700
};
if(Alloy.Globals.isAndroidTablet){
defaultFont = {
fontSize : "30sp",
fontFamily : Alloy.Globals.museo_slab_700
};
}
// Create our node items
var menuItems = [
{ id: 1, controller : "schedule" , title: "Sessioni", image: "/images/clock.png" , font: defaultFont , callback : function(e){openMenuItem(e);}},
Expand Down
20 changes: 12 additions & 8 deletions app/controllers/info.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
var defaultFont = {
fontSize : "20sp",
fontFamily : Alloy.Globals.museo_slab_700
};
if(Alloy.Globals.isAndroidTablet){
defaultFont = {
fontSize : "30sp",
fontFamily : Alloy.Globals.museo_slab_700
};
}
openInfo = function(e){
if(typeof e.source.nid != 'undefined'){
var nid = e.source.nid;
Expand Down Expand Up @@ -30,10 +40,7 @@ createInfoItem = function(infoItem){
touchEnabled: false,
bubbeParent: true,
text : infoItem.title,
font : {
fontSize : "20sp",
fontFamily : Alloy.Globals.museo_slab_700
},
font : defaultFont,
color : Alloy.CFG.colors.third
});
item.add(label);
Expand Down Expand Up @@ -80,10 +87,7 @@ var label = Ti.UI.createLabel({
touchEnabled: false,
bubbeParent: true,
text : "Crediti",
font : {
fontSize : "20sp",
fontFamily : Alloy.Globals.museo_slab_700
},
font : defaultFont,
color : Alloy.CFG.colors.third
});
item.add(label);
Expand Down
1 change: 1 addition & 0 deletions app/controllers/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function createRow(talkHoursList){
$.addClass(rowView,"rowView");
var title = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.title});
$.addClass(title,"listTitle");
$.addClass(title,"listTitleSession");
var speaker = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.name + " " + talk.surname});
$.addClass(speaker,"listSpeaker");

Expand Down
1 change: 1 addition & 0 deletions app/controllers/schedule_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function createRow(talkData){
$.addClass(rowView,"rowView");
var title = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.title});
$.addClass(title,"listTitle");
$.addClass(title,"listTitleSession");

// var track = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.track});
// $.addClass(track,"listTrack");
Expand Down
1 change: 1 addition & 0 deletions app/controllers/schedule_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function createRow(talkHoursList){
$.addClass(rowView,"rowView");
var title = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.title});
$.addClass(title,"listTitle");
$.addClass(title,"listTitleSession");

var track = Ti.UI.createLabel({touchEnabled: false, bubbeParent: true, text : talk.track});
$.addClass(track,"listTrack");
Expand Down
102 changes: 102 additions & 0 deletions app/styles/app.tss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
color : Alloy.CFG.colors.first,
left: "0"
}
".listTitle[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "37sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
".listDate" : {
font: {
fontSize : "25sp",
Expand All @@ -21,10 +27,106 @@
top: "5dp",
bottom : "5dp"
}
".listDate[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "37sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
"WebView" : {
width : Ti.UI.SIZE
}
"ImageView" : {
width : Alloy.Globals.deviceWidth,
height: "auto"
}


/*start general session list */
".headerSession" : {
backgroundColor : "#eeeeee",
}
".headerSeparatorTop" : {
width: "100%",
height : "1dp",
backgroundColor : "#dddddd",
}
".headerSeparatorBottom" : {
top: "5dp",
width: "100%",
height : "1dp",
backgroundColor : "#dddddd",
}
".rowView" : {
backgroundColor : Alloy.CFG.colors.third,
}
".rowSeparator" : {
width: "100%",
height : "1dp",
backgroundColor : Alloy.CFG.colors.first
}
".scheduleDate" : {
font: {
fontSize : "17sp",
fontFamily : Alloy.Globals.museo_slab_700
},
color: "#000000",
left: "5%",
top: "5dp",
}
".scheduleDate[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "25sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
".listSpeaker" : {
font: {
fontSize : "15sp",
fontFamily : Alloy.Globals.museo_slab_700
},
color : Alloy.CFG.colors.second,
left: "5%",
bottom : "5dp",
},
".listSpeaker[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "22sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
".listTrack" : {
font: {
fontSize : "15sp",
fontFamily : Alloy.Globals.museo_slab_500
},
width: Ti.UI.FILL,
textAlign: "center",
bottom : "5dp",
color: Alloy.CFG.colors.first
}
".listTrack[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "22sp",
fontFamily : Alloy.Globals.museo_slab_500
},
}
".favorite" : {
right: "5%",
top : "5dp",
width: "80%"
}
".listTitleSession" : {
left: "5%",
top : "10dp",
font: {
fontSize : "22sp",
},
textAlign : "left",
}
".listTitleSession[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "33sp",
},
}
/*end general session list */
12 changes: 12 additions & 0 deletions app/styles/countdown.tss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
},
textAlign: "center"
}
"Label[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "30sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
"#countdown" : {
width: "100%",
height: Ti.UI.SIZE,
Expand Down Expand Up @@ -64,6 +70,12 @@
textAlign: "center",
color : Alloy.CFG.colors.second,
}
".hashtag[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "30sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
".socialLink" : {
width : "15%",
left : "14%"
Expand Down
14 changes: 13 additions & 1 deletion app/styles/credits.tss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,23 @@
color : Alloy.CFG.colors.first,
textAlign : "center"
}
"Label[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "37sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
".fontCredits" : {
font: {
fontSize : "15sp",
fontFamily : Alloy.Globals.museo_slab_700
},
color : Alloy.CFG.colors.first,
textAlign : "center"
}
}
".fontCredits[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "22sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
75 changes: 12 additions & 63 deletions app/styles/favorites.tss
Original file line number Diff line number Diff line change
@@ -1,66 +1,3 @@
".headerSession" : {
backgroundColor : "#eeeeee",
},
".headerSeparatorTop" : {
width: "100%",
height : "1dp",
backgroundColor : "#dddddd",
},
".headerSeparatorBottom" : {
top: "5dp",
width: "100%",
height : "1dp",
backgroundColor : "#dddddd",
},
".rowView" : {
backgroundColor : Alloy.CFG.colors.third,
},
".rowSeparator" : {
width: "100%",
height : "1dp",
backgroundColor : Alloy.CFG.colors.first
}
".scheduleDate" : {
font: {
fontSize : "15sp",
fontFamily : Alloy.Globals.museo_slab_700
},
color: "#000000",
left: "5%",
top: "5dp",
},
".listSpeaker" : {
font: {
fontSize : "15sp",
fontFamily : Alloy.Globals.museo_slab_700
},
color : Alloy.CFG.colors.second,
left: "5%",
bottom : "5dp",
},
".listTrack" : {
font: {
fontSize : "15sp",
fontFamily : Alloy.Globals.museo_slab_500
},
width: Ti.UI.FILL,
textAlign: "center",
bottom : "5dp",
color: Alloy.CFG.colors.first
}
".listTitle" : {
left: "5%",
top : "10dp",
font: {
fontSize : "22sp",
},
},

".favorite" : {
right: "5%",
top : "5dp",
width: "80%"
},
".emptyFavotires" : {
font: {
fontSize : "25sp",
Expand All @@ -69,6 +6,12 @@
color : Alloy.CFG.colors.first,
textAlign : "center"
},
".emptyFavorites[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "37sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
".emptyFavoritesDetail" : {
font: {
fontSize : "15sp",
Expand All @@ -77,6 +20,12 @@
color : Alloy.CFG.colors.first,
textAlign : "center"
}
".emptyFavoritesDetail[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "22sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
"#nofavorites" : {
height: Ti.UI.SIZE
}
12 changes: 12 additions & 0 deletions app/styles/index.tss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
},
top: "30dp"
}
"#loadingText[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "37sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
"#container" : {
height:Ti.UI.FILL,
}
Expand Down Expand Up @@ -112,3 +118,9 @@
fontFamily : Alloy.Globals.museo_slab_700
}
}
"#headerTitle[if=Alloy.Globals.isAndroidTablet]" : {
font : {
fontSize : "37sp",
fontFamily : Alloy.Globals.museo_slab_700
},
}
8 changes: 1 addition & 7 deletions app/styles/infoDetail.tss
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
".listTitle" : {
font: {
fontSize : "25sp",
fontFamily : Alloy.Globals.museo_slab_700
},
backgroundColor : "transparent",
color : Alloy.CFG.colors.first,
left: "0"
}
}
Loading

0 comments on commit 23b8616

Please sign in to comment.