zooming

How to perform zoom in/out on VideoView in android?

蹲街弑〆低调 提交于 2019-12-22 05:27:04
问题 I am using VideoView & running videos from resources. I want to know, is there any way by which I can perform zoom in/out functionality on running video? 回答1: OK I had this issue and solved it by removing the VideoView and replaced it with a TextureView. You can then apply a Matrix transformation which includes lots of options including zooming. The method for the Matrix I would use is the postScale() method. You can apply multiple effects pre and post, which you can view in the documentation

Android how do I zoom and scroll a bitmap which is created on the fly

烈酒焚心 提交于 2019-12-21 22:41:43
问题 In my application, i'm using the following code for holding a map which is downloaded from a server. <?xml version="1.0" encoding="utf-8"?> <ScrollView android:id="@+id/scrollView1" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_gravity="center" android:layout_weight="1.0"> <ImageView android:id="@+id/mapImageView" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_width="wrap_content" android:scaleType="center"/> <

JavaFx zooming to mouse as pivot

大憨熊 提交于 2019-12-21 20:13:40
问题 I have tried the this example given in another post to learn about zooming and panning relative to the mouse pointer. When everything is on the grid, zooming works as expected: When zooming into the mouse pointer location on the top left image, it is zoomed into the exact location as seen in the top right image. If something is dragged off the grid, e.g. the pivot starts to 'misbehave': When zooming into the mouse pointer location on the bottom left image, it is zoomed into a location other

How can i zoom in and out in a UIImageView without UIScrollView?

北城以北 提交于 2019-12-21 04:38:12
问题 I'm developing an app for iOS 4.2, iPhone, in this app I download images and I save them in the internal storage (NSDocuments). Well, then I show the first image in a UIImageView. The user can drag their finger on the UIImageView (TouchesMoved), when the user do that, I load other image. If the user drag down, I load one image, if drag up, i load other, and also with right and left. This is all done. But I want to implement zooming. This is my code until now: initialDistance --> is the

UiWebView reset zoom programmatically

旧城冷巷雨未停 提交于 2019-12-21 03:09:11
问题 Is there a way to zoom out or reset a UiWebView programmatically ? if yes how ? 回答1: i think you should be able to manipulate the viewport using the safari meta tags https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html#//apple_ref/doc/uid/TP40008193-SW6 For example, to set the viewport width to the width of the device, add this to your HTML file: <meta name = "viewport" content = "width = device-width"> To set the initial

Zoom ImageView in android like Instagram

孤者浪人 提交于 2019-12-21 02:43:09
问题 How can I zoom ImageView like Instagram. I mean changing the size of imageview, not zooming the image inside the Imageview. For zooming the image inside the Imageview, there are a lot of samples but I want something like Instagram image zooming Any code or hint? Thanks. 回答1: I would recommend these two libraries: PhotoView ImageViewZoom For PhotoView, you just have to create an attacher and "attach" it to your ImageView . Some code // After getting your imageImage view, attach it like the

Zoom ImageView in android like Instagram

青春壹個敷衍的年華 提交于 2019-12-21 02:43:07
问题 How can I zoom ImageView like Instagram. I mean changing the size of imageview, not zooming the image inside the Imageview. For zooming the image inside the Imageview, there are a lot of samples but I want something like Instagram image zooming Any code or hint? Thanks. 回答1: I would recommend these two libraries: PhotoView ImageViewZoom For PhotoView, you just have to create an attacher and "attach" it to your ImageView . Some code // After getting your imageImage view, attach it like the

Wiki about android-zoom-view.jar

心已入冬 提交于 2019-12-19 07:48:32
问题 Is there any Wiki or any documents on how to implement android-zoom-view.jar. I found it on http://code.google.com/p/android-zoom-view/ and i wanna try to use it on my application to implement zooming on android scrollview but it's giving me a hard time to do it since i cant find any Wiki about it. Any comments or suggestions are very much appreciated. Thanks in advance 回答1: I wanna share my code on how to use the android-zoom-view.jar. This is how I use it. Create a new layout (R.layout

How to zoom whole activity on multi touch?

一世执手 提交于 2019-12-18 10:39:23
问题 Problem: It's easy to zoom images and web views. But I want to zoom a whole activity. How can I do this? Here, I provide wire-frame: From this you can understand, what I want to do. Request If you have any solution of this, then please share. Thank you. 回答1: You can simulate zooming in and out by scaling the root activity view. Here's some starter code: View v = findViewById(android.R.id.content); // get reference to root activity view v.setOnClickListener(new OnClickListener() { float

zooming image in viewflipper

给你一囗甜甜゛ 提交于 2019-12-18 05:27:13
问题 I have created a image slideshow using ViewFlipper. I have used imageFrame.setOnTouchListener(gestureListener); to listen user touch events like single tap,long tap But now i want to zoom in/out on current image in slideshow (ViewFlipper) ,on doubletap by user.I have searched internet for this but wasn't able to find a solution.Please help me out. 回答1: There are a number of ways you can do this, but a simple way is to use the platform's ZoomControls widget, which is a simple widget consisting