larger app card for iphone
This commit is contained in:
1 parent
77955f6bd6
commit
797b1a0b71
2 files changed
+23
No files matched your search
@@ -2020,6 +2020,23 @@ static NSMutableSet* hostList;
|
|||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (CGSize)collectionView:(UICollectionView *)collectionView
|
||||||
|
layout:(UICollectionViewLayout *)collectionViewLayout
|
||||||
|
sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||||
|
CGSize cellSize;
|
||||||
|
if([self isIPhone]) cellSize.height = 0.365*MIN(CGRectGetHeight([[UIScreen mainScreen] bounds]),CGRectGetWidth([[UIScreen mainScreen] bounds]));
|
||||||
|
else cellSize.height = 0.272*MIN(CGRectGetHeight([[UIScreen mainScreen] bounds]),CGRectGetWidth([[UIScreen mainScreen] bounds]));
|
||||||
|
TemporaryApp* app = _sortedAppList[indexPath.row];
|
||||||
|
UIAppView* appView = [[UIAppView alloc] initWithApp:app cache:_boxArtCache andCallback:self];
|
||||||
|
|
||||||
|
cellSize.width = cellSize.height * (appView
|
||||||
|
.bounds.size.width/appView
|
||||||
|
.bounds.size.height);
|
||||||
|
// cardSize.width =
|
||||||
|
|
||||||
|
return cellSize;
|
||||||
|
}
|
||||||
|
|
||||||
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
|
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
|
||||||
return 1; // App collection only
|
return 1; // App collection only
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2315,6 +2315,12 @@
|
|||||||
"value" : "Audio Configuration"
|
"value" : "Audio Configuration"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"zh-Hans" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "声道配置"
|
||||||
|
}
|
||||||
|
},
|
||||||
"zh-Hant" : {
|
"zh-Hant" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
"state" : "translated",
|
"state" : "translated",
|
||||||
|
|||||||
Reference in new issue
Block a user