HarmonyOS鸿蒙组件状态

btn_state_container.xml

p115

<?xml version="1.0" encoding="utf-8"?>
<state-container
    xmlns:ohos="http://schemas.huawei.com/res/ohos">
    <item ohos:state ="component_state_pressed" ohos:element ="#FF4286EE"/><!--按下切换到该状态 -->
    <item ohos:state ="component_state_hovered" ohos:element ="#FF76EE42"/><!--触摸设备不会切换到该状态 -->
    <item ohos:state ="component_state_empty" ohos:element ="#FF65D9EE"/><!--默认状态 -->
    <item ohos:state ="component_state_selected" ohos:element ="#FFE7F14A"/><!--默认状态 -->
</state-container>

 

posted @   txwtech  阅读(30)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
历史上的今天:
2022-12-26 System.AggregateException”类型的未经处理的异常在 mscorlib.dll 中发生 其他信-win7下闪退
2019-12-26 cc22a_demo_c++重载自增自减操作符-代码示范
2019-12-26 cc21a -c++重载成员操作符*,->,代码示范
点击右上角即可分享
微信分享提示