touchX = (originalX + layoutOffsetX) * scaleX;
touchY = (originalY + layoutOffsetY) * scaleY;

On Sep 7, 12:06 pm, bhavani sankari <bhavani...@gmail.com> wrote:
> Thanks!!!
>
> With ScaleAnimation, I was able to zoom entire layout with ImageViews.
>
> But I have touch problems in ImageViews. It is impossible to call
> touch event function by touching ImageViews  (but it can be called by
> touching original position).
>
> Any help?
>
> Regards
> Bhavani
>
> On Aug 19, 3:48 pm, Mark Murphy <mmur...@commonsware.com> wrote:
>
>
>
>
>
>
>
> > On Fri, Aug 19, 2011 at 5:09 AM, bhavani sankari <bhavani...@gmail.com> 
> > wrote:
> > > I have a requirement to zoom entire Relative layout .I found zooming
> > > APIs only from Android 3.0
>
> > > View.setPivotX(pivot.x);
> > > View.setPivotY(pivot.y);
> > > View.setScaleX(scaleX);
> > > View.setScaleY(scaleY);
>
> > > We are currently working in Gingerbread.How to use these APIs in
> > > Gingerbread.
>
> > You don't.
>
> > > Is it possible to get patches and apply in gingerbread so that we can
> > > make use of these APIs in Gingerbread.
>
> > No, sorry.
>
> > I have not tried those methods and do not know if they would be
> > suitable for zooming in the first place. In theory, they should, but
> > in theory, so would a ScaleAnimation.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 3.9 Available!

-- 
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

Reply via email to