How to Implement Swipe Action to Remove Notifications
One of the cooler features of some AOSP ROMs and, of course, ICS is the swipe motion to remove notifications. It’s not included on most Gingerbread builds, and likely not at all on anything sooner than that. However, with a little effort, a lot of patience and some careful tutorial following, you can have it on your ROM.
XDA Senior Member hansip87 has come up with a method to add the notification removal via swipe to ROMs that don’t have it that are Gingerbread or below. He adds a note of caution before beginning:
This mod is based on Sony Ericsson Xperia Ray, so take care when adding to another device, some code might be different though so no direct copy paste, please learn some of the line first.
The majority of the tutorial deals with modifying SystemUI.apk and Framework.jar files, which means you need to be able to decompile and recompile them. Additionally, it’s probably a very good idea to have some knowledge of XML and smali code. This is definitely one of the most difficult tutorials out there, so if you attempt it, make sure you head in knowing that, unless you’re a code genius, it’s going to take some serious work.
Of course, make sure you make backups of your original framework.jar and SystemUI.apk just in case something goes wrong. Also, make sure you make a backup of your device just in case something goes wrong during testing.
If this seems like something you’d like to try, you can find the full tutorial, a list of the needed programs and all the information you’ll need in the original thread. Reiteration: it’s pretty difficult, so exercise plenty of caution.