Android Battery Widget

Android Battery Widget

Released 5 years ago , Last update 5 years ago

The Java source of a battery widget for the Android home screen.

Add a battery widget to your widget pack or customize your own widget with the source of a fully functional and resizable battery widget for Android home screens.


  • Support for Android 2.1+
  • Resizable battery widget on Android 3.0+
  • Lock-screen widget on Android 4.2+
  • Start activity with user tutorial for installing widget on home screen
  • Extremely small size - just 32kb
  • Linear blending


14 day 14-day money-back guarantee


Application License

  • Perpetual license

  • 1 application

  • Can distribute binary products only

  • Commercial use

  • 6 months support


To change levels for normal, low and critical edit the configuration.xml and change battery_level_normal, battery_level_low and battery_level_critical. To change colors for normal, low, critical and charging edit the colors.xml and change the values.

The widget uses 3 images to display the battery:

  1. The battery_container.png is used for the static image, that doesn't change with battery level.
  2. The battery_filler.png is used to display the current battery level. It should be the same size image as the battery_container.png but containing only the filler. The filler is best to be drawn in complete white, the rest should be completely transparent.
  3. The battery_gloss.png is used to add some depth effect and it is applied on top of the filler, so it should be mostly transparent.

Note: all 3 images must be equal size and when stacked one on top of the other should match. Actually when battery is 100% complete it is the same as stacking the 3 images.

2 licenses, starting from From » $19.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
No comments have been posted yet.