小编Kan*_*ang的帖子

如何访问http://schemas.android.com/apk/res/android?

在开发android的时候,我们在开发布局文件时通常会用到xml。

例子)

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
...
Run Code Online (Sandbox Code Playgroud)

我当时有一个疑问。如何访问http://schemas.android.com/apk/res/android

因为我查到了一些资料。我知道这不是 URL,而是 URI。所以无法通过互联网访问。那么命名空间信息在哪里呢?如何访问该信息?

xml android xml-namespaces android-layout

5
推荐指数
1
解决办法
3168
查看次数

标签 统计

android ×1

android-layout ×1

xml ×1

xml-namespaces ×1