Monday, January 11, 2016

viewpager inside the picture how to gesture to zoom?




            


As stated, viewpager good time is to load multiple layouts, ah, I want at least to get the current zoom gesture that imageview job. In the end how to do it?
Reply:
You need to be touch monitor imageview operation to obtain data to calculate pack judgment, come to zoom operation.
Reply:
quote 1 floor maclay reply:
imageview operation you need to be touch monitor, clean up the data obtained is calculated judgment, come to zoom operation .

I would like to do ah, how to get this mainly imageview, now is not the imageview ah, I loaded a layout with a loop to the layout were added to Viewpager inside, the key is how to remove the currently displayed imageview to zoom in.
Reply:
quote 1 floor maclay reply:
imageview operation you need to be touch monitor, clean up the data obtained is calculated judgment, come to zoom operation .

http://blog.csdn.net/ethan_xue/article/details/7890888
Probably this principle. You refer to the following.
Reply:
quote 3rd floor maclay reply:
Quote: quote 1 floor maclay reply:

You need to be touch monitor imageview operation to obtain data to calculate pack judgment, come to zoom operation.

http://blog.csdn.net/ethan_xue/article/details/7890888
Probably this principle. You refer to the following.

OnPageChangeListener this viewpager listeners can get this page.
Reply:
quote 4th floor maclay reply:
Quote: 3rd floor maclay quote reply:

Quote: quote 1 floor maclay reply:

You need to be touch monitor imageview operation to obtain data to calculate pack judgment, come to zoom operation.

http://blog.csdn.net/ethan_xue/article/details/7890888
Probably this principle. You refer to the following.

OnPageChangeListener this viewpager listeners can get this page.

Feeling to get 80% of, ViewPager and Matrix have been rubbed together, and now almost all else fails, he sent the judge when to viewpager onInterceptTouchEvent () returns false or super.onInterceptTouchEvent (arg0), and feel quite tricky . For example, even if I judge except image reaches the right boundary, this time should be accepted slippery Ping's commands. But even if I let viewpager of onInterceptTouchEvent () Returns super.onInterceptTouchEvent (arg0) have to wait to accept the hand away from the screen, but it is not false return value immediately after the assignment is not. So the judgment is still a problem. You do not know what I said did not listen to understand, really bad expression.
Reply:
quote 4th floor maclay reply:
Quote: 3rd floor maclay quote reply:

Quote: quote 1 floor maclay reply:

You need to be touch monitor imageview operation to obtain data to calculate pack judgment, come to zoom operation.

http://blog.csdn.net/ethan_xue/article/details/7890888
Probably this principle. You refer to the following.

OnPageChangeListener this viewpager listeners can get this page.


And there is a very strange phenomenon, sometimes even let let viewpager of onInterceptTouchEvent () method returns false, he is still receiving slip Ping command is a larger image im not slip boundary, I let onInterceptTouchEvent () method returns false , he still slip Ping command execution, picture while panning flip side of the operation.
Reply:
quote 3rd floor maclay reply:
Quote: quote 1 floor maclay reply:

You need to be touch monitor imageview operation to obtain data to calculate pack judgment, come to zoom operation.

http://blog.csdn.net/ethan_xue/article/details/7890888
Probably this principle. You refer to the following.

looks like the judge to get the border, to get the current're just one imageview of the bitmap display. Because the image size is the same, I always use the first picture of the bitmap to scale, and to obtain the current bitmap when
imageView.setDrawingCacheEnabled (true);
bt = imageView.getDrawingCache ();
Centered so that later write my rewrite ImageView picture is gone, the top picture to go, really hurt the egg, but also need time to get!
Reply:
The landlord, the issue is now how? Can I share some codes?
Reply:
Seeking help with what kind landlord
Reply:
Upstairs with demand, the landlord has not done out ah!
Reply:
There is a written by someone else Demo, you can extract
codes to download the desiredhttp://download.csdn.net/detail/sinyu890807/6547731
Reply:
quote 7th floor summersrest reply:
Quote: 3rd floor maclay quote reply:

Quote: quote 1 floor maclay reply:

You need to be touch monitor imageview operation to obtain data to calculate pack judgment, come to zoom operation.

http://blog.csdn.net/ethan_xue/article/details/7890888
Probably this principle. You refer to the following.

looks like the judge to get the border, to get the current're just one imageview of the bitmap display. Because the image size is the same, I always use the first picture of the bitmap to scale, and to obtain the current bitmap when
imageView.setDrawingCacheEnabled (true);
bt = imageView.getDrawingCache ();
Centered so that later write my rewrite ImageView picture is gone, the top picture to go, really hurt the egg, but also need time to get!



Looks like you is how to get the border judge buttoned? You can teach me?

No comments:

Post a Comment