布局文件
<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayout
xmlns:ohos="http://schemas.huawei.com/res/ohos"
ohos:height="match_parent"
ohos:width="match_parent"
ohos:alignment="center"
ohos:orientation="vertical">
<PageSlider
ohos:id="$+id:pageslider"
ohos:height="0"
ohos:width="match_parent"
ohos:weight="1"/>
<RadioContainer
ohos:id="$+id:radioContainer"
ohos:height="60vp"
ohos:width="match_parent"
ohos:orientation="horizontal">
<RadioButton
ohos:height="match_parent"
ohos:width="0"
ohos:weight="1"
ohos:marked="true"
ohos:text="新闻"