touchimageview

TouchImageView doesn't show image until after a pinch gesture

好久不见. 提交于 2019-12-13 05:28:07
问题 I'm using the custom view TouchImageView. However, when I set the bitmap it doesn't show the image unless I do a pinch gesture on it. public class PhotoOverlayActivity extends AppCompatActivity { public static final String CURRENT_MESSAGE_KEY = "message"; private static final int IMAGE_REQUEST_CODE = 0; String currentMessage; private Bitmap bitmap; private TouchImageView mImageView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

How to reset the zoomed image into original image

六月ゝ 毕业季﹏ 提交于 2019-12-12 11:33:43
问题 I am using the TouchImageView class available at https://github.com/MikeOrtiz/TouchImageView. when i move from the zoomed image to next and get back to previous image it still have zooming. I want to reset the zooming image into normal position when swipe to previous image and got answer by refer this question How to reset an image to the original position but I don't know exactly where have to put the this method in this library so can you please help me to guide? Thanks in advance. public

Scroll Horizontally and Vertically ImageView in TouchImageView in Android?

别等时光非礼了梦想. 提交于 2019-12-11 08:34:22
问题 Here is the ZOOM IN AND ZOOM out TouchImageView.This is the code available ZOOM IN AND ZOOM OUT CUSTOM FUNCTION IN IMAGEVIEW for zoom in and zoom out it sucessfully zooming IN and zoomng OUT an image on Button click but i am failed to scroll after zoom.I have seen scrollView part here MeahdiIjaz Answer.Can Someone please adjust the part of scroll both horizontal and vertical in this TouchImageView ? can someone please help me here TouchImage View here is the logcat error after following

Zoomable SVG with clickable areas - Android

只愿长相守 提交于 2019-12-06 09:42:01
问题 I'm making very simple application. It needs to show one SVG containing generalised world map. By clicking on city's name (svg rectangle), I need to show another SVG that corresponds to that city. Also, all SVGs must support zooming and panning. I managed to make SVGs support zooming and panning and that works perfect. For that purpose, I'm using svg-android library for rendering SVGs and customized TouchImageView for panning, zooming and capturing scale and touch events. But, it seems to be

Zoomable SVG with clickable areas - Android

半世苍凉 提交于 2019-12-04 15:40:11
I'm making very simple application. It needs to show one SVG containing generalised world map. By clicking on city's name (svg rectangle), I need to show another SVG that corresponds to that city. Also, all SVGs must support zooming and panning. I managed to make SVGs support zooming and panning and that works perfect. For that purpose, I'm using svg-android library for rendering SVGs and customized TouchImageView for panning, zooming and capturing scale and touch events. But, it seems to be impossible to make clickable regions on SVGs in Android. I tried brute force, to recalculate position