在编程中将元数据设置为Android中



我们可以以编程方式即可以suftest

的代码段来编程地设置元数据标签的内容。
 <application
        android:allowBackup="true"
        android:theme="@style/AppTheme"
        >
        <meta-data
            android:name="com.samsung.android.vr.application.mode"
            android:value="vr_only"/>

.......

不,对不起。<meta-data>元素仅在编译时间设置。

您使用的特定库需要<meta-data>元素可能会提供通过Java代码而不是<meta-data>元素进行配置的某种方法。此详细信息会因库而异。

最新更新