android - 在 Android 中维度 %p 是什么意思?

标签 android android-layout

我一直在浏览 developer website 上的一些 Android 示例,并且我看到 %p 被用作维度。

我进行了 Google 搜索,但找不到有关其含义的任何信息。有人知道吗?

最佳答案

查看 keyWidth文件的解释。

the optional %p suffix provides a size relative to some parent container

关于android - 在 Android 中维度 %p 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4412109/

相关文章:

javascript - Android提交使用jquery的https登录表单

android - 具有顶部/底部属性的项目的层列表

java - 使用适配器应对两种不同情况

android - 如何在 Android 中使用dimens.xml?

Android、Google Cloud Messaging - 推送到手机,但不会在设备上创建推送通知

android - 虚拟回调接口(interface)

android - 在 dimensions.xml 中使用 FILL_PARENT

android - R.id无法解析

android - Maps API 需要已设置的额外权限

android - 为什么我的应用程序崩溃调用 "setupActionBarWithNavController(navController, appBarConfiguration)"