Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some help upgrading from an ancient version (0.6.1) #87

Open
Shark812 opened this issue Oct 7, 2024 · 0 comments
Open

Need some help upgrading from an ancient version (0.6.1) #87

Shark812 opened this issue Oct 7, 2024 · 0 comments

Comments

@Shark812
Copy link

Shark812 commented Oct 7, 2024

Sorry guys to bother, I'm writing because I'm having some issue upgrading from the version 0.6.1 (de.blox:graphview).

This is an example of one Android layout:

        <de.blox.graphview.GraphView
        android:id="@+id/graph"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="@dimen/activity_margin"
        app:hasClickableChildren="true"
        app:horizontalPanEnabled="false"
        app:lineColor="@android:color/white"
        app:lineThickness="8dp"
        app:useMaxSize="true"
        app:verticalPanEnabled="false"
        app:zoomEnabled="false" />

or this is an activity that is actually working:

        zoom.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            if (isZoom) {
                graphView.zoomTo(1.0f, true);
                graphView.setZoomEnabled(false);
                graphView.setVerticalPanEnabled(false);
                graphView.setHorizontalPanEnabled(false);
                //zoom.setBackgroundResource(R.drawable.zoom_in);
                isZoom = false;
            } else {
                graphView.zoomTo(2.0f, true);
                graphView.setZoomEnabled(true);
                graphView.setVerticalPanEnabled(true);
                graphView.setHorizontalPanEnabled(true);
                isZoom = true;
                //zoom.setBackgroundResource(R.drawable.zoom_out);
            }
        }
    });

I tried updating the library but I'm struggling with all the changes, can you guys just face me in the right direction?
Thanks for the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant