[MOD][Xposed] Statusbar Scroll to Top

Search This thread

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
Requires Xposed Framework!

This module allows you to tap the status bar to scroll (smoothly, at least that's what the API says) to the top of lists.

This isn't compatible with all lists in this first version. Chrome for example isn't compatible, or some manufacturer lists (like the Contacts app in TouchWiz).

If this is patented by a fruit-based company, it'll most likely get a C&D, so keep that in mind when you look forward to updates :p

Demo:
Video: https://www.youtube.com/watch?v=e6-sOWhwY0g
Video as GIF, FWIW, http://i.imgur.com/vNBTbQs.gif

Known bugs:
  • Manufacturer specific lists and some other custom scrollers (e.g Chrome) aren't supported yet.

Compatibility:
4.0 - 4.4 probably, I really haven't checked the source code, tested on Sony's 4.3.

Source:
The mod is open source: https://github.com/MohammadAG/Xposed-StatusBar-Scroll-To-Top
You may NOT distribute this app on the Play Store, paid or free.

Download:
http://repo.xposed.info/module/com.mohammadag.statusbarscrolltotop

Inspired by:

Support development:
If you found this mod useful, consider donating with PayPal.
 
Last edited:

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
Man, I'm about to have a direct subscription to the threads you create. Do you ever stop for a moment without coding useful things??

To hell with iFruit. :silly:

I do, this took about 2 hours, inspired by a post on Reddit with Android's pros and cons, the code implementation hit me while I was driving home :p

Sent from my C6903 using Tapatalk
 

polobunny

Senior Member
Oct 25, 2011
6,222
2,308
Montreal
I do, this took about 2 hours, inspired by a post on Reddit with Android's pros and cons, the code implementation hit me while I was driving home :p

Sent from my C6903 using Tapatalk

Yeah I don't code much anymore but that's what used to be the biggest roadblock in most complicated projects I would start. Figure out a way to do it effectively.

Glad it hit you! :victory:
 
  • Like
Reactions: MohammadAG

polobunny

Senior Member
Oct 25, 2011
6,222
2,308
Montreal
A bit far fetched, but do you believe it would be possible to add support for more than the standard list? Such as webview?
Since it seems a lot of apps are actually just frontends for a page in webview, plus a lot of browsers using webview, I imagine this could be the next target of your thinkering and would cover most cases. It would be great to be able to scroll to top in a browser too. :)
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
A bit far fetched, but do you believe it would be possible to add support for more than the standard list? Such as webview?
Since it seems a lot of apps are actually just frontends for a page in webview, plus a lot of browsers using webview, I imagine this could be the next target of your thinkering and would cover most cases. It would be great to be able to scroll to top in a browser too. :)

I'm looking into Chrome, they supposedly use some kind of standard scroller, since they have the blue overscroll indicator.
 
  • Like
Reactions: bluepratham

omf05

Senior Member
Dec 13, 2012
465
114
I've been looking for something like this since I left iOS. Hopefully you can get it working with chrome. This is great mod indeed!
 

LitoNi

Senior Member
May 5, 2012
1,337
805
Vancouver
I'm looking into Chrome, they supposedly use some kind of standard scroller, since they have the blue overscroll indicator.

nicely done, works flawlessly... i have few suggestions/comments

-having little issues with facebook app, it kinda works: moves up by a little but not all the way to the top.
-if possible, allow user to choose the scroll speed when status bar is tapped on? to me, it is kind of slow sometimes... just my opinion

anyway, really appreciate your works for xperia devices. :highfive:

many thanks:fingers-crossed:
 

omf05

Senior Member
Dec 13, 2012
465
114
nicely done, works flawlessly... i have few suggestions/comments

-having little issues with facebook app, it kinda works: moves up by a little but not all the way to the top.
-if possible, allow user to choose the scroll speed when status bar is tapped on? to me, it is kind of slow sometimes... just my opinion

anyway, really appreciate your works for xperia devices. :highfive:

many thanks:fingers-crossed:

Facebook take a few taps. Twitter is working perfectly! I'm sure this will be fixed! :)
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
nicely done, works flawlessly... i have few suggestions/comments

-having little issues with facebook app, it kinda works: moves up by a little but not all the way to the top.
-if possible, allow user to choose the scroll speed when status bar is tapped on? to me, it is kind of slow sometimes... just my opinion

anyway, really appreciate your works for xperia devices. :highfive:

many thanks:fingers-crossed:

Facebook switched me to the new version, and it works fine there, I guess you'll have to wait for the update that includes that, or Facebook downgrades my account :p

Second part is controlled by the system, I use a method called smoothScrollTo(0, 0). I'm not sure if that can be easily changed :)
 
  • Like
Reactions: LitoNi

polobunny

Senior Member
Oct 25, 2011
6,222
2,308
Montreal
Seems like it causes certain apps to force close. Tapatalk for example, if I go in a topic then back by pressing the back key to my followed topics then press the status bar it will force close. What do you need from me to help diagnose this?
Edit: it does scroll to the top before closing though.

Edit 2: doesn't crash anymore, found out it's because of a broken pvr driver. Ignore this haha
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 128
    Requires Xposed Framework!

    This module allows you to tap the status bar to scroll (smoothly, at least that's what the API says) to the top of lists.

    This isn't compatible with all lists in this first version. Chrome for example isn't compatible, or some manufacturer lists (like the Contacts app in TouchWiz).

    If this is patented by a fruit-based company, it'll most likely get a C&D, so keep that in mind when you look forward to updates :p

    Demo:
    Video: https://www.youtube.com/watch?v=e6-sOWhwY0g
    Video as GIF, FWIW, http://i.imgur.com/vNBTbQs.gif

    Known bugs:
    • Manufacturer specific lists and some other custom scrollers (e.g Chrome) aren't supported yet.

    Compatibility:
    4.0 - 4.4 probably, I really haven't checked the source code, tested on Sony's 4.3.

    Source:
    The mod is open source: https://github.com/MohammadAG/Xposed-StatusBar-Scroll-To-Top
    You may NOT distribute this app on the Play Store, paid or free.

    Download:
    http://repo.xposed.info/module/com.mohammadag.statusbarscrolltotop

    Inspired by:

    Support development:
    If you found this mod useful, consider donating with PayPal.
    13
    Man, I'm about to have a direct subscription to the threads you create. Do you ever stop for a moment without coding useful things??

    To hell with iFruit. :silly:

    I do, this took about 2 hours, inspired by a post on Reddit with Android's pros and cons, the code implementation hit me while I was driving home :p

    Sent from my C6903 using Tapatalk
    5
    Wish it was faster scrolling to the stop.

    Work Great on LG G2

    Could you add white list function ?
    And everything will be more perfect :D

    Sent from my LG G2(F320S)

    Nice, seems to work on Note 3 running 4.3.

    Two ideas:

    - for some people it might be worth having a option to scroll quick rather than smooth

    - for non-standard lists would it work better if you would just inject a "Home" key (as if coming from a keyboard)?

    Exactly what I was about to suggest -- why not just send a HOME keystroke to the active application to scroll to the top? Wouldn't that work universally?

    I'll override scrolling itself at some point, that'll allow for faster scrolling, I'd rather have it use some interpolater (as per iOS - it accelerates depending on list size) than suddenly go to the top.

    What a great module :)
    I see in the Bugs section that you're aware that the notification panel causes a scroll, but it's also the quick settings panel :p

    They're the same from a coding standpoint :p
    Fixed in 1.1.

    Hey @MohammadAG great mod thanks for all that you do! I wanted to ask you if it's possible to make something similar but have different touch points within the status bar do different actions?

    An example would be...tap battery icon = open battery settings
    tap wifi/4g/signal bars = open wireless networks
    tap clock = open alarm clock settings
    tap an app notification icon = opens that app

    I think that this really would be awesome but I'm not a software developer on any level to know if it's even possible

    It's possible in the sense I can allow actions depending on the area clicked, but detecting icons is a pain, as you might have seen in Tinted Status Bar.

    For me it would be usefull if touching the left side of the status bar it scrolls to top and touching right side to bottom. For SMS, Whattsapp etc

    Good idea, may add it in later versions :)

    When I touch any part of the notification center (the middle for example), the application (in background) goes to top.

    Anyone is experimenting this issue ?

    Fixed in 1.1.
    4
    can you add something like tap the left side of statusbar to go to top and tap on the right side to go to the bottom

    This root app does what you want : https://play.google.com/store/apps/details?id=com.kiumiu.ca.oneclickscroll
    2
    i was on reddit this morning when someone requested this feature/module. a few hours later, i find it on xda. this is one of the main reasons why the xda community is, and always will be, one of my favorite places on the web. well done op.

    the op has delivered :)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone