如何把导航默认在最底下显示?
<?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:orientation="vertical"
ohos:background_element="#FFE0E3E3">
<Text
ohos:id="$+id:text_helloworld"
ohos:height="match_content"
ohos:width="match_content"
ohos:layout_alignment="horizontal_center"
ohos:text="$string:mainability_HelloWorld"
ohos:text_size="40vp"
/>
<DirectionalLayout
xmlns:ohos="http://schemas.huawei.com/res/ohos"
ohos:height="match_content"
ohos:width="match_parent"
ohos:orientation="horizontal"
ohos:background_element="#FFFFFF"
>
<Button
ohos:id="$+id:dynamic"
ohos:height="match_content"
ohos:width="match_parent"
ohos:text="动态"
ohos:text_size="10vp"
ohos:element_top="$media:dt"
ohos:weight="1"/>
<Button
ohos:id="$+id:friend"
ohos:height="match_content"
ohos:width="match_parent"
ohos:text="好友"
ohos:text_size="10vp"
ohos:element_top="$media:hy"
ohos:weight="1"/>
<Button
ohos:id="$+id:function"
ohos:height="match_content"
ohos:width="match_parent"
ohos:text="功能"
ohos:text_size="10vp"
ohos:element_top="$media:gn"
ohos:weight="1"/>
<Button
ohos:id="$+id:set"
ohos:height="match_content"
ohos:width="match_parent"
ohos:text="我的"
ohos:text_size="10vp"
ohos:element_top="$media:yh"
ohos:weight="1"/>
</DirectionalLayout>
</DirectionalLayout>
鸿蒙
导航
显示
赞
收藏 0
回答 1
待解决
相关问题
webview导航无法正常导航,怎么处理?
3231浏览 • 1回复 待解决
何如把默认的左右动画换成上下动画?
1719浏览 • 1回复 待解决
鸿蒙开发如何默认启动ability
5052浏览 • 3回复 待解决
Button如何设置state-container背景,目前button只能设置默认背景,无法显示点击动态效果?
4098浏览 • 1回复 待解决
太难了,能从最基础讲起吗?
3644浏览 • 1回复 待解决
priviewer为什么只能文字Text标签显示正常,图片Image标签都显示不出来,设置了默认图片的
4703浏览 • 2回复 待解决
鸿蒙如何获取导航栏和状态栏高度
7679浏览 • 1回复 待解决
鸿蒙webview如何去除默认的白色背景?
1483浏览 • 1回复 待解决
请问在DolphinDB中导入CSV时中文显示乱码,如何解决?
987浏览 • 1回复 待解决
在继承FractionAbility声明定义TabList在layout中显示不出来
4424浏览 • 3回复 待解决
鸿蒙竖屏可以在底部显示的布局,在横屏显示不了是出了什么问题
3710浏览 • 1回复 待解决
如何把公共事件发布给其他设备
1956浏览 • 1回复 待解决
js如何把list组件设置为横向的?
1405浏览 • 1回复 待解决
如何让音乐播放器在鸿蒙的控制中心里显示?
7171浏览 • 1回复 待解决
微服务如何应用在导航等其他IOT架构里?
1925浏览 • 1回复 待解决
app内上部写有应用名的导航条如何去掉?
2654浏览 • 1回复 待解决
entry是默认启动模块吗??能否更改默认启动模块??
716浏览 • 1回复 待解决
为什么在 openGauss 中使用“explain timing”时显示错误?
207浏览 • 1回复 待解决
鸿蒙WebView 层级 总是处于最外层
4492浏览 • 3回复 待解决
导航换装 车机版 鸿蒙系统
8610浏览 • 1回复 待解决
社区一周年,大家最期待什么?
10062浏览 • 5回复 已解决
HarmonyOS startAbility和connectAbility最根本的区别是什么
6920浏览 • 1回复 待解决
如何将通知栏中显示的通知内容完全显示,不让其省略显示
3798浏览 • 1回复 待解决
鸿蒙开发现在最缺的是什么?
4600浏览 • 2回复 待解决
openharmony jsFA 如何横屏显示?
4268浏览 • 1回复 待解决
DirectionalLayout默认从上往下,楼主可以参考DependentLayout