Twitter for Android like swipe-to-side quick menu

2019-01-22 10:25发布

问题:

ScreenShot http://dl.dropbox.com/u/33331786/swipedemo.png

I would like to know how to setup the animation where, for in example in the latest Twitter for Android App, you can swipe a tweet to the side, and a quick menu will appear(not the old popup one). Thanks..

回答1:

Since this is a really cool feature and I didn't find an implementation for that I created it myself. I started a project which will contain this feature (besides other dev tools).

Update:

The project has moved to GitHub (android-toolbox)

The project contains that feature and meanwhile has some good bugfixes since I used it in another app. The feature is called swipeable quick action.

There's a showcase application which demonstrates it and shows you what the code looks like. For quick starters there's an APK file in the download section so you can see what it it is without have to read everything you find in the project wiki.

If you want to see this feature in a real application you can check my banshee-remote project (screenshots). The application itself is interesting only when your using Banshee as your favorite music player.

Critic, requests, bug reports or any kind of feedback is very welcome! I'll respond to every message ;-)