Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[DEV] [SMALI] Notification Panel Background (Without Effecting Lockscreen)

$
0
0
Howdy, everyone...

This is a custom class (extending ImageView) I made that will enable you to add a background/wallpaper to the notification panel, without effecting the lockscreen. If you use this (or any derivative thereof) in any release, please give proper credit and shoot me a link to the release...

How To Use
  • Download the linked zip file.
  • Decompile your SystemUI.apk.
  • Extract the zip file, and copy the entire "morningstar" folder to /smali/com/android in your decompiled apk.
  • Place your background image into the appropriate drawable folder.
  • Open /res/layout/status_bar_expanded.xml, and immediately following the line with the namespace declarations, add the following:
    Code:

    <com.android.morningstar.NotiPanelBG android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/your_background_drawable" />
    Example:

    *Note: This class accepts all standard ImageView attributes, so adjust to fit your specific needs.
  • Recompile, push to your device, set permissions to RW-R-R, and reboot.

***Note***
You may have to make the layout change in one of the specific resolution layout folders, rather than in the main layout folder, depending on your device.

Screenshots
Notification panel expanded while device is unlocked:


...And while locked (The black & white image is my lockscreen background):


Download
Quote:

NotiPanelBG.zip
md5: 4ff444ea14cf70c39a49a252cbf3e19d
Enjoy!
~Morningstar

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>