为DP一样浸染? [英] Is dp the same as dip?

查看:170
本文介绍了为DP一样浸染?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/2025282/difference-of-px-dp-dip-and-sp-in-android">Difference的像素,DP,畅游和SP在Android的

我已经发现了几个主题在此。但没有真正回答我的问题。

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

DP和畅游机器人。区别是什么?是不是一回事?

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

推荐答案

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

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

<一个href="http://developer.android.com/guide/topics/resources/more-resources.html#Dimension">Documentation:

编译器,可同时接收探底和DP,虽然DP是SP更加一致。

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

这篇关于为DP一样浸染?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆