Skip to content

Commit a9647be

Browse files
layout changes in sample app
1 parent eeb33b8 commit a9647be

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

entry/src/main/resources/base/element/float.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"name": "instalike_image_size",
21-
"value": "300vp"
21+
"value": "100vp"
2222
}
2323
]
2424
}

entry/src/main/resources/base/layout/ability_main.xml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
ohos:id="$+id:main_select"
2121
ohos:height="match_content"
2222
ohos:width="match_parent"
23-
ohos:left_margin="20vp"
24-
ohos:right_margin="20vp"
2523
ohos:bottom_margin="30vp"
2624
ohos:background_element="$graphic:background_ability_main"
2725
ohos:orientation="horizontal">
@@ -32,31 +30,30 @@
3230
ohos:width="match_content"
3331
ohos:left_margin="20vp"
3432
ohos:text="SET VECTOR"
35-
ohos:text_size="50vp"/>
33+
ohos:text_size="20vp"/>
3634

3735
<RadioButton
3836
ohos:id="$+id:radio_image"
3937
ohos:height="match_content"
4038
ohos:width="match_content"
4139
ohos:left_margin="20vp"
4240
ohos:text="SET IMAGE"
43-
ohos:text_size="50vp"/>
41+
ohos:text_size="20vp"/>
4442
</RadioContainer>
4543

4644
<DirectionalLayout
4745
ohos:id="$+id:color_layout"
4846
ohos:height="match_content"
4947
ohos:width="match_parent"
50-
ohos:orientation="vertical"
51-
ohos:visibility="hide">
48+
ohos:orientation="vertical">
5249
<Text
5350
ohos:id="$+id:color_prompt"
5451
ohos:height="match_content"
5552
ohos:width="match_parent"
5653
ohos:left_margin="20vp"
5754
ohos:bottom_margin="30vp"
5855
ohos:text="Select a color from below"
59-
ohos:text_size="40vp"/>
56+
ohos:text_size="20vp"/>
6057
<RadioContainer
6158
ohos:id="$+id:colorContainer"
6259
ohos:height="match_content"
@@ -68,23 +65,23 @@
6865
ohos:id="$+id:color_red"
6966
ohos:height="match_content"
7067
ohos:width="match_content"
71-
ohos:left_margin="20vp"
68+
ohos:left_margin="10vp"
7269
ohos:text="RED"
73-
ohos:text_size="35vp"/>
70+
ohos:text_size="25vp"/>
7471
<RadioButton
7572
ohos:id="$+id:color_green"
7673
ohos:height="match_content"
7774
ohos:width="match_content"
78-
ohos:left_margin="20vp"
75+
ohos:left_margin="10vp"
7976
ohos:text="GREEN"
80-
ohos:text_size="35vp"/>
77+
ohos:text_size="25vp"/>
8178
<RadioButton
8279
ohos:id="$+id:color_blue"
8380
ohos:height="match_content"
8481
ohos:width="match_content"
85-
ohos:left_margin="20vp"
82+
ohos:left_margin="10vp"
8683
ohos:text="BLUE"
87-
ohos:text_size="35vp"/>
84+
ohos:text_size="25vp"/>
8885
</RadioContainer>
8986
</DirectionalLayout>
9087
<Button
@@ -96,5 +93,5 @@
9693
ohos:padding="20vp"
9794
ohos:layout_alignment="center"
9895
ohos:padding_for_text="true"
99-
ohos:text_size="35vp"/>
96+
ohos:text_size="20vp"/>
10097
</DirectionalLayout>

0 commit comments

Comments
 (0)