On Sat, Jul 21, 2012 at 8:02 PM, Jim Graham spooky1...@gmail.com wrote:
I'm not sure I understand Are you saying that display.getWidth and
display.getHeight don't return valid numbers? Or did I miss something?
I am saying that I don't recommend using them, and I have no good strong
use
On Sun, Jul 22, 2012 at 12:06:30AM -0700, Dianne Hackborn wrote:
Do you have a specific use case where you think they are the right way to
go?
I use them for determining the maximum preview size for the camera
preview. Whether that's the right way to go or not, I can't say, but it
works
How about View width and height instead of Display?
On Sunday, July 22, 2012 12:31:21 PM UTC+1, Spooky wrote:
On Sun, Jul 22, 2012 at 12:06:30AM -0700, Dianne Hackborn wrote:
Do you have a specific use case where you think they are the right way
to
go?
I use them for determining the
On Sun, Jul 22, 2012 at 7:46 AM, RichardC
richard.crit...@googlemail.com wrote:
How about View width and height instead of Display?
Precisely. It matters not a whit how big the display is. What matters
is how big the preview SurfaceView can be, after taking everything
else into account.
So,
On Sun, Jul 22, 2012 at 07:55:59AM -0400, Mark Murphy wrote:
On Sun, Jul 22, 2012 at 7:46 AM, RichardC
richard.crit...@googlemail.com wrote:
How about View width and height instead of Display?
Precisely. It matters not a whit how big the display is. What matters
is how big the preview
On Sun, Jul 22, 2012 at 8:21 AM, Jim Graham spooky1...@gmail.com wrote:
That's probably what I'm not clear on What is everything else
in this case?
It doesn't matter. Put your SurfaceView in your layout, then calculate
your preview size based upon the SurfaceView's size.
I see what this
On Sun, Jul 22, 2012 at 5:21 AM, Jim Graham spooky1...@gmail.com wrote:
That's probably what I'm not clear on What is everything else
in this case? If display.getWidth and display.getHeight report that
my tablet's display size is 1280x752 (which, I just discovered, is NOT
what
On Fri, Jul 20, 2012 at 12:10:04PM -0700, bob wrote:
float width = display.getWidth();
float height = display.getHeight();
Correction: display.getWidth() and display.getHeight() both return int,
not float.
Later,
--jim
--
THE SCORE: ME: 2 CANCER: 0
73 DE N5IAL (/4)MiSTie
Not sure what you are answering...? That is not a use case, that is just
retrieving the values. Which, again, I recommend not using for anything.
On Fri, Jul 20, 2012 at 12:10 PM, bob b...@coolfone.comze.com wrote:
Or like so:
Display display =
On Sat, Jul 21, 2012 at 09:57:34AM -0700, Dianne Hackborn wrote:
Not sure what you are answering...? That is not a use case, that is just
retrieving the values. Which, again, I recommend not using for anything.
I'm not sure I understand Are you saying that display.getWidth and
You missed something which is that :
use cases are different than how to use.
On Sat, Jul 21, 2012 at 8:02 PM, Jim Graham spooky1...@gmail.com wrote:
On Sat, Jul 21, 2012 at 09:57:34AM -0700, Dianne Hackborn wrote:
Not sure what you are answering...? That is not a use case, that is just
I recommend never using them. The real correct size will be given to you
through the view hierarchy.
On Thu, Jul 19, 2012 at 7:32 PM, Agus agus.sant...@gmail.com wrote:
What are the uses cases in which width and height values of DisplayMetrics
used ?
Is it just for games ?
--
You
Or like so:
Display display =
((WindowManager).getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
float width = display.getWidth();
float height = display.getHeight();
On Friday, July 20, 2012 1:06:36 PM UTC-5, Dianne Hackborn wrote:
I recommend never using them. The real
What are the uses cases in which width and height values of DisplayMetrics
used ?
Is it just for games ?
--
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
14 matches
Mail list logo