Add "rubber Band" Effect In Android While Changing Background Of Application
Solution 1:
twoway-view implements an AdapterView that can scroll vertically or horizontally, but not both at the same time. It wouldn't work in your case.
I would use a ViewPager in which each fragment:
- Shows a certain background
- Lets the user select the text through swipe up and down gestures.
To obtain a rubber band effect, just add a BounceInterpolator to the animation that moves the text up & down. In the ViewPager you could get a similar effect applying a custom PageTransformer.
Solution 2:
You will probably need to use a combination of GestureDetector, SimpleOnGestureListener and TranslateAnimation on your layout. This can be fairly involved but you can find a Translation example at this SO question and GestureDetector/SimpleOnGestureListener example here. Hopefully you can figured out how to adapt the code to suit your needs.
Solution 3:
You can try this library for the Rubber Band effect: AndroidViewAnimations
Post a Comment for "Add "rubber Band" Effect In Android While Changing Background Of Application"