...
|
...
|
@@ -78,9 +78,9 @@ export default class Recommend extends React.Component { |
|
|
}
|
|
|
|
|
|
let backgroundWidth = width;
|
|
|
let backgroundHeight = 40 + Math.ceil(list.length / 4) * itemWidth;
|
|
|
let backgroundHeight = 40 + Math.ceil(list.length / 4) * itemWidth + 30;
|
|
|
return (
|
|
|
<View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'#f0f0f0'}}>
|
|
|
<View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'#f4f7f2'}}>
|
|
|
<ListView
|
|
|
contentContainerStyle={styles.contentContainer}
|
|
|
dataSource={this.dataSource.cloneWithRows(list)}
|
...
|
...
|
@@ -111,7 +111,7 @@ const styles = StyleSheet.create({ |
|
|
rowContainer: {
|
|
|
borderRightWidth: 1,
|
|
|
borderBottomWidth: 1,
|
|
|
borderColor: '#CCC',
|
|
|
borderColor: '#e5e5e5',
|
|
|
},
|
|
|
thumbnail: {
|
|
|
width: itemWidth-1,
|
...
|
...
|
@@ -124,7 +124,9 @@ const styles = StyleSheet.create({ |
|
|
width:width,
|
|
|
backgroundColor: 'white',
|
|
|
borderBottomWidth: 1,
|
|
|
borderBottomColor: '#CCC',
|
|
|
borderBottomColor: '#e5e5e5',
|
|
|
borderTopColor: '#e5e5e5',
|
|
|
borderTopWidth: 1,
|
|
|
},
|
|
|
itemTitle: {
|
|
|
marginLeft:5,
|
...
|
...
|
@@ -138,7 +140,7 @@ const styles = StyleSheet.create({ |
|
|
fontWeight: 'bold',
|
|
|
textAlign: 'center',
|
|
|
color: 'gray',
|
|
|
fontSize: 10,
|
|
|
fontSize: 9,
|
|
|
},
|
|
|
text: {
|
|
|
textAlign: 'center',
|
...
|
...
|
|