首页 > android:visibility 和 tools:visibility 有什么区别

android:visibility 和 tools:visibility 有什么区别

        android:id="@+id/rl_button_menu_home"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:visibility="invisible"
        tools:visibility="invisible"
        
        这两个visibility属性有什么区别?

tools 下的参数是给开发工具使用的,主要是方便在 IDE 中预览。
而 android 下的参数是用于 apk 的实际参数


楼上正解,题主如果想更详细了解,可以看下这篇文章

android中xml tools属性详解

【热门文章】
【热门文章】