DisplayMetrics can return density , I think you can do some calculation... 在 2012年6月22日星期五UTC+8下午11时11分26秒,Raghav Sood写道: > > Hi, > > Does android have any method that returns the display width in dp? > DisplayMetrics only seems to return the scale factor and exact pixels as > far as I could tell from the docs, or did I miss something? > > If not, is there an exact formula I could use to calculate the display > width in dp? > > Thanks > > -- > Raghav Sood > Please do not email private questions to me as I do not have time to > answer them. Instead, post them to public forums where others and I can > answer and benefit from them. > http://www.appaholics.in/ - Founder > http://www.apress.com/9781430239451 - Author > +91 81 303 77248 >
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

