lawloretienne/DiscreteSlider

animated setPosition

Andrauss opened this issue · 15 comments

Hello, its possible make animated setPosition method, to get a same effect when pressing.

Can you give me some context of what you are trying to do? are you clicking a button that then calls setPosition() in the DiscreteSlider?

I'm using an viewpager with 3 fragments and on PageChangeListener method of this i'm calling set Position() of the DiscreteSlider.

Do you mind sharing a screenshot?

please wait a minute...

At the moment I can not show you an example, but when possible i'll post the image.

Hello, I created a fork and implements this function

can I close this issue?

the sreenshot is in this link: http://prntscr.com/clgerd, and now i'm trying to make an pullrequest

#8 Pull Request created

why not just use a circle page indicator with the viewpager instead of a slider?

it's kind of stage to have two ui components used for the same thing. swiping left and right in the view pager and sliding the slider are the two things I'm taking about.

strange*

In my case i'm using a slider like a tablayout, in my app i show the week days in the slider and an fragment per day of week.

The app Like this: http://prntscr.com/clhkze

I put the viewpager in sample only for illustrate my user case, the focus is animate setPosition method.