Re: [android-developers] Re: How to calculate a tablets resolution before purchasing the tablet

2014-05-22 Thread Simon Giddings
Great Tobias,

This is a great help, thank you for taking the time to put this here !

On Wednesday, 21 May 2014 21:37:20 UTC+2, Tobias wrote:

 I found this dpi/ppi calculator to be useful: http://www.sven.de/dpi/
 It will give you the actual physical dpi. Taking this value and then 
 rounding it to the closet dpi bucket (
 http://developer.android.com/reference/android/util/DisplayMetrics.html) 
 would be a good bet, even though the manufacturer could choose a different 
 bucket.

 Tobias

 Den onsdagen den 16:e april 2014 kl. 09:14:48 UTC+2 skrev Simon Giddings:

 Thank you Marina for your reply which is much more useful.

 Even if it means that I am stuck at this point.  After all, as 
 independent developers, we are not all sufficiently rich to be able to 
 purchase a number of tablet devices to be able to run our tests.

 Thank you again Marina, I won't be wasting my time searching further.

 On Tuesday, 15 April 2014 15:27:10 UTC+2, Marina Cuello wrote:

 You can search for/make an app that detects the bucket and install it, 
 if you have access to the device. A quick search gives me 
 https://play.google.com/store/apps/details?id=com.pmc.android.checkscreensize,
  
 but there are plenty.
 Otherwise, as far as I can recall it depends on the manufacturer's 
 decision which bucket it takes. So no, you can't calculate the bucket 
 given the physical screen size and dpi specs.

 Marina


 On Tue, Apr 15, 2014 at 4:06 AM, Simon Giddings mr.s.g...@gmail.comwrote:

 The effort I made did not reveal this result and it certainly does 
 not answer the question !

 My question was more general, if you hadn't noticed.
 Given that most tablets will give a horizontal and vertical pixel size 
 as well as a diagonal size in inches, is it possible to determine the 
 density bucket (to use googles term) ie: MDPI or HDPI or XHDPI, etc

 From what you have managed to find, this device would appear to fall 
 between two buckets - HDPI and XHDPI because
 - HDPI screens are ~240dpi
 - XHDPI screens are ~320dpi
 (according to Supporting Multiple 
 Screenshttp://developer.android.com/guide/practices/screens_support.html
 )

 So the question remains open 


 On Monday, 14 April 2014 20:21:31 UTC+2, Chris wrote:

 Googling the exact phrase Toshiba eXcite Pro AT10LE-A-10D screen DPI 
 yields in the first result a screen DPI of 300.  

 At least give it an effort.

 - C

 On Tuesday, April 1, 2014 3:28:39 AM UTC-4, Simon Giddings wrote:

 I am looking at buying a Toshiba eXcite Pro AT10LE-A-10D, which 
 boasts a screen resolution of 2560 x 1600 pixels for a screen diagonal 
 of 
 10.1.

 Is it possible to calculate the DP value - ie MDPI / HDPI / XHDPI etc 
 ?

 I haven't been able to find any form of developer support on the 
 toshiba web site, which could have helped.
  
  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 unsubscribe from this group and stop receiving emails from it, send 
 an email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Navigation Drawer Icon Theme/Color?

2014-05-22 Thread Kevin Kovach
We're trying to theme an app that uses a navigation drawer and I want to be 
able to tint/color the icon for the navigation drawer with an @color.  For 
the life of me I cannot find any information or hints on how to accomplish 
this.  I would really appreciate any hints on doing this.  Thanks.

- Kevin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Is there any functionality difference between ViewTreeObserver.removeOnGlobalLayoutListener() and .removeGlobalOnLayoutListener()?

2014-05-22 Thread Sheng-Dean
The ViewTreeObserver class has 2 methods:

 removeOnGlobalLayoutListener()  removeGlobalOnLayoutListener(). 

I went on GrepCode and diff-ed every version and couldn't find any 
functionality difference other than the name change.

Is there any functionality differences between these two methods?
Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Navigation Drawer Icon Theme/Color?

2014-05-22 Thread Kostya Vasilyev
This is the class responsible for that pedestrian crossing icon:

https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html

It's in the support library. The code as it is just loads an image from a
resource resource, but should be easy to change to apply a color tint.

-- K


2014-05-23 0:25 GMT+04:00 Kevin Kovach kov...@gmail.com:

 We're trying to theme an app that uses a navigation drawer and I want to
 be able to tint/color the icon for the navigation drawer with an @color.
  For the life of me I cannot find any information or hints on how to
 accomplish this.  I would really appreciate any hints on doing this.
  Thanks.

 - Kevin

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Is there any functionality difference between ViewTreeObserver.removeOnGlobalLayoutListener() and .removeGlobalOnLayoutListener()?

2014-05-22 Thread Kostya Vasilyev
Looks like it was just renamed in API 16 for consistency.

https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/ViewTreeObserver.java


   1. @Deprecated
   2. public void removeGlobalOnLayoutListener(OnGlobalLayoutListener victim
   ) {
   3. removeOnGlobalLayoutListener(victim);
   4. }
   5.


-- K


2014-05-23 1:33 GMT+04:00 Sheng-Dean littledot5...@gmail.com:

 The ViewTreeObserver class has 2 methods:

  removeOnGlobalLayoutListener()  removeGlobalOnLayoutListener().

 I went on GrepCode and diff-ed every version and couldn't find any
 functionality difference other than the name change.

 Is there any functionality differences between these two methods?
 Thanks!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.