http://developer.android.com/guide/practices/screens_support.html#dips-pels
Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jun 22, 2012 at 9:11 AM, Raghav Sood <[email protected]> wrote: > 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 -- 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

