对资源的引用,如“@string/app_name”。该资源ID可以通过该metaData.getInt()方法获取 。
android:value
分配给该标签的值,如String、Boolean等。
Metadata具体用法
在AndroidMainfest.xml中:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android=“http://schemas.android.com/apk/res/android”
package=“me.fwl.metadatademo”>
<application
android:allowBackup=“true”
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl=“true”
android:theme="@style/AppTheme">
<act
《Android学习笔记总结+最新移动架构视频+大厂安卓面试真题+项目实战源码讲义》
【docs.qq.com/doc/DSkNLaERkbnFoS0ZF】 完整内容开源分享
i