mercredi 25 février 2015

[APP][LP][Xposed][1.0.1] Lolistat - Statusbar coloring module for Lollipop topic






NOTICE: Xposed for Lollipop itself is in alpha at present, so there is expected to be some unstabilities that is related to Xposed Framework itself but not this module.

Introduction

It is known to us all that accroding to Google's Material Design, the phone status bar should be of the color that defined in app style named "colorPrimaryDark". Unfortunately, not all of the apps support this style attribute (for now), resulting in a completely black status bar on Lollipop. This module aims to fix that, to make the status bar the color it should be.

Actually, I know there have been a dozen of modules of this kind, but none of them are specially optimized for Lollipop. Lollipop provides a much more convenient API to change the background of status bar, but those modules are still using the old way (find and hook the status bar view, then change the color) on Lollipop. The old method looks perfect on ICS, JB, KK, but not perfect on Lollipop, as Lollipop have animations on status bar while switching between activities also. Hooking the status bar view will override this animation. This is why I wrote this module.

I still hold the hope that this module should be deprecated one day, the day that most of the apps have adapted to the style of Material Design.

Features

* Change the status bar background to a slightly darkened color of the app's top
* White-ify status bar icons

Requirements

* >= Lollipop (Android 5.0.x) (Except Samsung's stock roms, as Xposed does not work on them)
* Xposed Framework

ONLY tested on CM12 and AOSP Lollipop, do not know if it is going to work on other custom roms or stock roms by manufactorers

Installation

1. Go to Xposed Installer, select "Download"
2. Refresh and search for "Lolistat"
3. Download the latest version and install
4. Enable it in Xposed
5. Reboot and enjoy!

Download

From Xposed store: http://repo.xposed.info/module/info.papdt.lolistat

Source Code

Source code of this module is opened under the terms of GNU General Public License version 3

https://github.com/PeterCxy/Lolistat

Reporting bugs

Just reply this thread, or open an issue at the GitHub page above.

Credits

This module is not possible without:

* @rovo89 for his awesome Xposed Framework
* @MohammadAG for his module sources that helped me when I wrote this module
* PA project and other modules that change the status bar color for their inspiration

Changelog

1.0.1
- Prevent potential memory leak
- Reduce memory occupation and improve performance
- Fix incorrect colors
- Ignore translucent & floating(dialog) activities to prevent conflicts

1.0.0
Initial release.






Aucun commentaire:

Enregistrer un commentaire