Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Camera TextureView scaleX/scaleY problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jon Sutherland  
View profile  
 More options Feb 15, 2:14 pm
From: Jon Sutherland <jon.sutherl...@gmail.com>
Date: Wed, 15 Feb 2012 11:14:34 -0800 (PST)
Local: Wed, Feb 15 2012 2:14 pm
Subject: Camera TextureView scaleX/scaleY problems
Hi,

When I create a TextureView for a android.hardware.Camera preview and
set the scaleX and scaleY properties in my Activity onCreate method,
everything looks great and as expected.

However when I try calling setScaleX/setScaleY in the onClick listener
of a button and invalidate/postInvalidate the view, I see no changes
in the view.  I tried similar things with ObjectAnimator with the same
result.  The scaling only seems to work when the TextureView is first
created.

Can I change the scaling of my TextureView in a click listener while
the camera preview is running?  Is there any way to get this to work
while my activity is running and the preview is on the screen.

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Sutherland  
View profile  
 More options Feb 16, 12:26 pm
From: Jon Sutherland <jon.sutherl...@gmail.com>
Date: Thu, 16 Feb 2012 09:26:12 -0800 (PST)
Local: Thurs, Feb 16 2012 12:26 pm
Subject: Re: Camera TextureView scaleX/scaleY problems
Found my own problem, I was referencing an older instance of my
TextureView object... it was  being replaced in my onResume method and
this caused the confusion.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »