HarmonyOS text可以在不计算宽高快速定位到右下角吗?
Stack({ alignContent: Alignment.Center }) {
Text('First child, show in bottom').width('90%').height('100%').backgroundColor(0xd2cab3)
Text('Second child, show in top').width('70%').height('60%').backgroundColor(0xc1cbac)
}.width('100%').height(150)
这个组件的第二个text可以在不计算宽高快速定位到右下角吗?
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
怎么让text文本排在image里面的右下角
473浏览 • 1回复 待解决
【Position属性】想要利用position属性把组件固定在页面的右下角
608浏览 • 1回复 待解决
声明一个Button或Image标签,怎么悬浮在页面的右下角固定位置的最上层
2117浏览 • 1回复 待解决
HarmonyOS 进入拍照页面,拍照后,点击右下角的 确定按钮,没有反应,不能返回原来的应用
194浏览 • 1回复 待解决
宽高的设置,是否支持计算,如100%-20vp
554浏览 • 1回复 待解决
HarmonyOS photoAsset获取图片宽高失败
141浏览 • 1回复 待解决
HarmonyOS RelativeContainer 不能自适应宽高
95浏览 • 1回复 待解决
HarmonyOS 是否有方法可以在组件展示前获取到即将展示的组件的宽高?
119浏览 • 0回复 待解决
如何获取屏幕宽高,你知道吗?
2140浏览 • 1回复 待解决
HarmonyOS Image组件能否自动按原图宽高展示某张远程图片?即Image的宽高自动调整为该图的实际宽高
178浏览 • 1回复 待解决
如何获取图片的宽高,你知道吗?
1880浏览 • 1回复 待解决
获取Column最终的宽高
193浏览 • 1回复 待解决
HarmonyOS获取相册视频的宽高问题
185浏览 • 1回复 待解决
HarmonyOS RelativeContainer宽高撑满父容器问题
263浏览 • 1回复 待解决
HarmonyOS 如何获取组件的大小,宽高?
45浏览 • 1回复 待解决
HarmonyOS Text组件默认基线是如何计算的
198浏览 • 1回复 待解决
如何测量获取控件高宽
548浏览 • 1回复 待解决
怎么获取组件的宽高(组件宽高是自适应的,没有固定大小)?
2212浏览 • 1回复 待解决
HarmonyOS中的window怎么设置固定宽高
1579浏览 • 1回复 待解决
HarmonyOS如何获取指定子组件的宽高
552浏览 • 1回复 待解决
HarmonyOS 视频编码surface 防止设置宽高失败
148浏览 • 1回复 待解决
如何获取窗口的宽高信息
2034浏览 • 1回复 待解决
ArkTs如何获取组件的宽高?
4308浏览 • 1回复 待解决
ImageKnife 这个控件可以监听加载完成后的图片再获取图片的实际宽高吗
728浏览 • 1回复 待解决
请参考以下demo: