Giter Club home page Giter Club logo

android-zoom-view's People

Contributors

gkapusta avatar literator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-zoom-view's Issues

Views not appeared when added dynamically

From [email protected] on April 10, 2014 13:46:33

What steps will reproduce the problem? 1.Create Zoomable View
2.Add new view dynamically from code.
3.Observe the screen What is the expected output? What do you see instead? >Subviews added dynamically should be displayed What version of the product are you using? On what operating system? >>I am using code from zip provided. Please provide any additional information below.

Original issue: http://code.google.com/p/android-zoom-view/issues/detail?id=8

How to use this library

Hi,
I have to plot images based on x & y co-ordinate with following conditions -

  1. Entire view will be pinch zoom
  2. Entire view will be scroll horizontally & Vertically in both.

How I can use this library.

How to differentiate gesture and click?

I'm using custom view , in that I have click events! when I implement this zoom view, click event triggered before the zoom ! failed to zoom becz I have dialog to popup on click event.

Sample?

Is there a sample of how to use this library?

Drag limits for zoom view content

From [email protected] on September 04, 2013 10:46:27

  1. Set max zoom factor to 4
  2. Double click the image to enlarge to maximum
  3. Scroll the image inside the videw

Scrolling should be limited to the physical view bounds of the image, so for example, if the top of the enlarged image reaches the physical view top zooming should stop.

I tried various options, however I could not get any of these solutions working with your implementation. Could you provide me with a solution? http://stackoverflow.com/questions/7532128/how-to-keep-an-image-inside-the-screen-limits-while-using-pinch-zoom-and-drag-ge http://stackoverflow.com/questions/4227451/android-imageview-setting-drag-and-pinch-zoom-parameters

Original issue: http://code.google.com/p/android-zoom-view/issues/detail?id=5

Find coordinates in zoomed in state

Is there a way to find the coordinates of a point in the zoomed in state relative to the view port? So for example if a point is x,y with respect to the visible screen in the zoomed out state and we zoom in by a factor of 5, what would be the new coordinates of the point?

ZoomView and ScrollView problem

Hello and thank you for this great widget,
I have a problem with ZoomView and ScrollView,
When I put ZoomView intro scrollView it does zoom in but the scrollable area gets smaller and the user can not scroll for example to the top or the bottom of scrollView. It also happens when I put scrollview into the zoomable area like this:

View v = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.zoomablelayout, null, false);//zoomablelayout contains scrollview
RelativeLayout.LayoutParams params=new    RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.FILL_PARENT);

v.setLayoutParams(params);

ZoomView zoomView = new ZoomView(this);
zoomView.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT,     LayoutParams.FILL_PARENT));
zoomView.addView(v);

RelativeLayout   main_container = (RelativeLayout) findViewById(R.id.main_container);
main_container.addView(zoomView);

Thank you.

Use of ZoomView

From [email protected] on January 29, 2013 22:40:51

My question is quite simple, how to ue ZoomView ?

I have put the jar in my buildpath, but after ?

When I tried this into myview.xml:

    <ZoomView>
    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_marginBottom="5dip"
        android:src="@drawable/plan" />
    </ZoomView>

It crashes.

Original issue: http://code.google.com/p/android-zoom-view/issues/detail?id=1

clipped content

From [email protected] on April 03, 2013 10:13:58

What steps will reproduce the problem? 1. Place view in zoomview What is the expected output? What do you see instead? I expect to automatically adjust the whole layout but it clipped some part of the layout.

This is my sample code.

TableLayout table = new TableLayout(this);

    for (int x = 0; x < 10; x++) {
        TableRow row = new TableRow(this);
        for (int i = 0; i < 10; i++) {
            CheckBox c = new CheckBox(this);
            row.addView(c);
        }
        table.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
    }

    ZoomViewUtility zoomView = new ZoomViewUtility(this);
    zoomView.addView(table);

    LinearLayout main_container = (LinearLayout) findViewById(R.id.main_container);
    main_container.addView(zoomView);

Thanks

Original issue: http://code.google.com/p/android-zoom-view/issues/detail?id=3

zoom with double tapping

I have applied this zoomview to gridview.How is it possible to stop the zoom in double tapping,because it activates the single click events

Hit areas views inside ZoomView

Hi, this is not a real bug, I think is more a tweak. If I add new views dinamically to your ZoomView, everything works fine. Pan and zoom works correctly. But what I see is that these views are only DRAWN inside the new position rather then MOVED. Infact the original view always stays at the same position, with its hit areas. In that way I'm not able to interact with them because I should touch its original position. Do you have any suggestion to fix this?

Thanks

How to add more than one views into ZoomView?

Hi, ZoomView is very good, I like it very much. But there is a problem, that when I add more than one views into ZoomView, only the first one will display. While I want all of them display. Could you help me? Thank you very much!

View changes its position slightly at zoomended.

From [email protected] on June 12, 2013 14:35:34

First of all..Thank you for this amazing and efficient library.

I have attached ZoomView class with little modification.
I wanted to catch all the methods from listener and existing implementation was returning them but sometimes zoom ended was not detected.So i have merged single and double touch events in one and now it is working like a charm..

The only problem is not every time but most of the time view changes its little position on zoom ended time.

Can you help me with this?

Attachment: ZoomView.java

Original issue: http://code.google.com/p/android-zoom-view/issues/detail?id=4

Crash on view inflating: missing constructor

From [email protected] on February 19, 2013 10:14:03

What steps will reproduce the problem? 1. Include the ZoomView in an existing layout, for example as a FrameLayout child.
2. Run the application.
3. Crash. What is the expected output? What do you see instead? I expect the ZoomView to be placed inside it's parent view. Exception thrown instead:

java.lang.RuntimeException: Unable to start activity ComponentInfo
-> Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class pl.polidea.view.ZoomView
-> Caused by: java.lang.NoSuchMethodException: [class android.content.Context, interface android.util.AttributeSet]

The problem is that ZoomView does not provide alternative constructors that accept layout parameters. I fixed adding these two:

public ZoomView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}

public ZoomView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}

Now it look to work well.

Original issue: http://code.google.com/p/android-zoom-view/issues/detail?id=2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.