简体   繁体   English

HarmonyOS 中 elevation 属性的 Alternative 是什么?

[英]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 中看到没有任何高程属性可供查看。

Thank you for your feedback, as confirmed by the team, The Java UI is not currently supported, Please stay tuned on HarmonyOS official websites.感谢您的反馈,经团队确认,目前不支持 Java UI,敬请关注鸿蒙官网。

For JS UI, you may can refer to Docs .对于 JS UI,您可以参考Docs

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.

相关问题 R(android) 到 HarmonyOs 和 Displaymetrics 到 HarmonyOS 和一些常量的替代包是什么? - What is the alternative packages for R(android) to HarmonyOs and Displaymetrics to harmonyOS and some constants? android 中的 postDelayed() 在 HarmonyOS 中的替代方法是什么? - What is the alternative in HarmonyOS for postDelayed() in android? android 中 RecyclerView 的 HarmonyOS 替代品是什么? - What is the HarmonyOS alternative for RecyclerView in android? Android 中的 window.setDimAmount() 在 HarmonyOS 中的替代方案是什么? - What is the alternative in HarmonyOS for window.setDimAmount() in Android? Android OS 中的 onDraw 在 HarmonyOS 中的替代功能是什么? - What is the alternative function in HarmonyOS for onDraw in Android OS? Android OS 中的 onMeasure 在鸿蒙 OS 中的替代功能是什么? - What is the alternative function in HarmonyOS for onMeasure in Android OS? ValueAnimator.ofInt(int... values) 在和谐中的替代方案是什么? - What is the alternative in harmonyos for ValueAnimator.ofInt(int… values)? 在 Android 操作系统中,HarmonyOS 中 valueAnimator.removeAllUpdateListeners() 的替代方案是什么? - What is the alternative in HarmonyOS for valueAnimator.removeAllUpdateListeners() in Android OS? AndroidOS 中的 imageview.getImageMatrix() 在 HarmonyOS 中的替代方法是什么 - What is the alternative method in HarmonyOS for imageview.getImageMatrix( ) in AndroidOS 在 Android 操作系统中,HarmonyOS 中的 activity.findViewById(android.R.id.content) 的替代方案是什么? - What is the alternative in HarmonyOS for activity.findViewById(android.R.id.content) in Android OS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM