Use BatteryMeterView.java in android app -


i use batterymeterview.java aosp own app create battery icon responds level change, charging state, etc.

i found source on github. possible integrate app create icon , percent text?

i'm thinking .xml with

<com.example.app.batterymeterview     android:id="@+id/battery_icon"     android:layout_width="8dp"     android:layout_height="15dp" /> 

and batterymeterview.java file inside com.example.app

also can use file in non open-source projects according current licence? time!

this should be possible, need include resources , make decision on whether or not want have batterycontroller , ignore demomode. , make decision of whether want hasoverlappingrendering().

license details

read more @ http://www.apache.org/licenses/license-2.0 , you're interested in redistribution part.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -