mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-04 23:28:56 +08:00
更新设置界面菜单布局
This commit is contained in:
parent
36f6d7030d
commit
8f83046cdb
@ -1,3 +1,7 @@
|
|||||||
### 新增
|
### 新增
|
||||||
|
|
||||||
- 隐藏黑色主题背景设置,默认关闭,可以去设置-主题设置更改
|
- 隐藏黑色主题背景设置,默认关闭,可以去设置-主题设置更改
|
||||||
|
|
||||||
|
### 优化
|
||||||
|
|
||||||
|
- 更新设置界面菜单布局
|
||||||
|
@ -51,7 +51,7 @@ export default ({ onChangeId }: {
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView style={{ ...styles.container, borderTopColor: theme['c-border-background'] }} contentContainerStyle={styles.contentContainer} keyboardShouldPersistTaps={'always'}>
|
<ScrollView horizontal style={{ ...styles.container, borderBottomColor: theme['c-border-background'] }} contentContainerStyle={styles.contentContainer} keyboardShouldPersistTaps={'always'}>
|
||||||
{
|
{
|
||||||
SETTING_SCREENS.map(id => <ListItem key={id} id={id} activeId={activeId} onPress={handleChangeId} />)
|
SETTING_SCREENS.map(id => <ListItem key={id} id={id} activeId={activeId} onPress={handleChangeId} />)
|
||||||
}
|
}
|
||||||
@ -62,15 +62,15 @@ export default ({ onChangeId }: {
|
|||||||
|
|
||||||
const styles = createStyle({
|
const styles = createStyle({
|
||||||
container: {
|
container: {
|
||||||
height: 96,
|
height: 50,
|
||||||
flexGrow: 0,
|
flexGrow: 0,
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
borderTopWidth: BorderWidths.normal,
|
borderBottomWidth: BorderWidths.normal,
|
||||||
opacity: 0.7,
|
opacity: 0.7,
|
||||||
},
|
},
|
||||||
contentContainer: {
|
contentContainer: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
flexWrap: 'wrap',
|
flexWrap: 'nowrap',
|
||||||
padding: 5,
|
padding: 5,
|
||||||
// backgroundColor: 'rgba(0, 0, 0, 0.1)',
|
// backgroundColor: 'rgba(0, 0, 0, 0.1)',
|
||||||
},
|
},
|
||||||
@ -79,8 +79,10 @@ const styles = createStyle({
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
listItem: {
|
listItem: {
|
||||||
width: '33.33%',
|
// width: '33.33%',
|
||||||
height: 40,
|
height: 40,
|
||||||
|
paddingLeft: 15,
|
||||||
|
paddingRight: 15,
|
||||||
// height: 'auto',
|
// height: 'auto',
|
||||||
// flexDirection: 'row',
|
// flexDirection: 'row',
|
||||||
// alignItems: 'center',
|
// alignItems: 'center',
|
||||||
|
@ -20,10 +20,10 @@ const Content = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
|
<NavList onChangeId={handleChangeId} />
|
||||||
<ScrollView contentContainerStyle={styles.main} keyboardShouldPersistTaps={'always'}>
|
<ScrollView contentContainerStyle={styles.main} keyboardShouldPersistTaps={'always'}>
|
||||||
<Main ref={mainRef} />
|
<Main ref={mainRef} />
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
<NavList onChangeId={handleChangeId} />
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user