[英]What is the Alternative for elevation attribute in HarmonyOS?
I am building a HarmonyOS application, Where I need to set elevation on custom component.我正在构建一个 HarmonyOS 应用程序,我需要在其中设置自定义组件的高度。
In Android we can set elevation on and widget as follow在 Android 中,我们可以设置海拔和小部件如下
android:elevation="8dp"
but, I saw in HMOS there is no any elevation attribute present for view.但是,我在 HMOS 中看到没有任何高程属性可供查看。
Harmony has setAltitude API available from SDK 6, unfortunately which is not released to public yet. Harmony 已经从SDK 6 开始设置 Altitude API,不幸的是还没有公开发布。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.