小编Sun*_*hou的帖子

我如何在Android XML布局文件中使用View节点?

在Android Studio中,我看到了一个<View />节点,它具有Widget的所有属性.我很好奇,这个节点是什么,我怎么能用呢?

<View
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:background="@color/material_cyan_200"
 />
Run Code Online (Sandbox Code Playgroud)

xml android android-xml android-view

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

android-view ×1

android-xml ×1

xml ×1