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

User Touch Event #8

Open
Vivekpatel124 opened this issue Aug 29, 2018 · 0 comments
Open

User Touch Event #8

Vivekpatel124 opened this issue Aug 29, 2018 · 0 comments

Comments

@Vivekpatel124
Copy link

Vivekpatel124 commented Aug 29, 2018

How to get user touch event with this seekbar?

I am trying setOnTouchListener --- >

int progress = seekBar.getMaxProgress() - (int) (seekBar.getProgress() * event.getX() / seekBar.getWidth());
seekBar.setProgress(progress);

But getting wrong value in (progress).

                    <com.marcinmoskala.arcseekbar.ArcSeekBar
                        android:id="@+id/seekbar"
                        android:layout_width="match_parent"
                        android:layout_height="**80dp**"
                        app:progressBackgroundColor="@color/colorPrimary"
                        app:progressBackgroundWidth="8dp"
                        app:progressColor="@color/white1"
                        app:progressWidth="8dp"
                        app:roundEdges="true" />
@Vivekpatel124 Vivekpatel124 changed the title User Touch User Touch Event Aug 29, 2018
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