emilsjolander / android-FlipView

A small, easy to use android library for implementing flipping between views as seen in the popular Flipboard application
Apache License 2.0
924 stars 273 forks source link

please add the following features #22

Closed mahmoudco closed 11 years ago

mahmoudco commented 11 years ago

Thanks for your great job and wish to add the following 1 flipview.disable() that disables touching the flipview 2 fliptoposition(int pos) 3 setadapter(new adapter(), initial position) 4 rubber band to be more flexable 5 replacing glow effect with gradient and shadow effects making it more realistic 6 there is a bug on flipping, some black noise appears 7 flipview.getcurrentview() 8 flipview.continousflipping(int delay)

please post code that helps in starting flipview at position 0 until you add the new features Finally,i would like to thank you again for the great job you have made until now

emilsjolander commented 11 years ago
  1. No. Subclass flipview and add this behaviour yourself by overriding onTouch().
  2. Already exists. mFlipView.flipTo(int index)
  3. No. call setAdapter(ListAdapter adapter) followed by flipTo(int index)
  4. I agree. This change has already been made locally and will get pushed in the next release.
  5. No. I will not replace the glow effect. It followes the native scroll effect of other collection views such as ListView and ViewPager. You can implement your own effect by implementing OverFlipper. Make a pull request and i might add your OverFlipper to the main repo.
  6. report the bug with specific information and screenshots as a separate issue. I am in the middle of re-writing the rendering of the FlipView so all issues will probably get fixed in the next release.
  7. I don't see a good reason to add this. You can get the current index with getCurrentPage(), this should be enough.
  8. No. There are enough methods in FlipView to easily add this functionality yourself in either a subclass or your fragment/activity.