dp和dip一样吗

发布于 2024-12-07 12:12:04 字数 270 浏览 8 评论 0原文

可能的重复:
android中px、dp、dip和sp的区别

我发现了几个与此相关的主题。但没有人真正回答我的问题。

Android 中的 Dp 和 Dip。有什么区别?是一样的吗?

Possible Duplicate:
Difference of px, dp, dip and sp in android

I've found several topics on this. But none really answers my question.

Dp and dip in android. What is the difference? Is it the same thing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

闻呓 2024-12-14 12:12:04

是的,它们是一样的。没有什么区别,只是一个别名。

文档

编译器接受“dip”和“dp”,但“dp”与“sp”更一致。

Yes, they are the same. There is no difference, its just an alias.

Documentation:

The compiler accepts both "dip" and "dp", though "dp" is more consistent with "sp".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文