Skip to content

Repository files navigation

Xiaomi-like Battery Bar Banner

Xiaomi-like Battery Bar

Xiaomi-like Battery Bar is a high-performance, minimalist recreation of a battery style found in some Xiaomi devices. It displays a sleek battery level bar at the very top of your screen, overlaying all other applications.

Designed as a modern "set it and forget it" tool, this version has no GUI and is controlled exclusively via Android Quick Settings.

Note

For the best experience, disable or hide your default battery icon and percentage in your system settings.

Key Features

  • Zero-GUI Architecture: The app has no launcher icon or main activity. It lives entirely in the background and is toggled via a Quick Settings tile.
  • Xiaomi-style Charging Pulse: A subtle, organic pulsing animation activates when charging to provide visual feedback without battery drain.
  • Ultra-Efficient Engine: Uses screen-state awareness to completely pause battery listeners and animators when the screen is off, ensuring near-zero idle consumption.
  • Code-Hardened (AppCompat-Free): Rebuilt using native Android components for the smallest possible memory footprint and instantaneous startup.
  • Dynamic Color Coding:
    • ■ Green: Charging / Full (with pulse)
    • ■ Orange: Battery Saver mode active
    • ■ Red: Battery level ≤ 20%
    • ■ White: Normal operation (> 20%)
  • High-Res Optimized: Precisely tuned 1.5dp thickness for a premium, integrated look that remains visible on QHD+ displays.

Usage

  1. Enable the Tile: Edit your Quick Settings panel (pull down twice and tap the pencil/edit icon) and drag the Battery Bar tile into your active tiles.
  2. Grant Permissions: Tap the tile. If it's your first time, the app will automatically redirect you to the system permission setting. Grant it and tap the tile again.
  3. Toggle & Forget: Simply tap the tile to start or stop. The bar persists through device reboots automatically.

Technical Details

  • Package: com.tx24.xiaomibatterybar
  • Target SDK: 35 (Android 15 ready)
  • Min SDK: 21 (Lollipop+)
  • Architecture: Kotlin + Native Android (Zero legacy dependencies)
  • Performance: Event-driven with zero background polling.

License

Copyright 2026 75py (Original) / Modified by TX24

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Xiaomi-like Battery Bar is a recreation of the battery style found in some Xiaomi devices.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages