What is com.org.BatteryManager.BatteryView?
If you want to use a custom view, this is possible. The way to do this is to create a custom view class in Java that extends the component class of the base view.
For example, I use custom Gallery components in many of my applications. The gallery class will only move one frame left or right across the screen, which is different from the default behavior.
The way I created my own gallery is an extension of the main gallery class -
package com.testing.whatever; public class CustomGallery extends Gallery {
Then in my XML code, the code looked the same as you already have -
<com.testing.whatever.CustomGallery android:layout_width="fill_parent" android:layout_height="fill_parent" />
I suspect you are getting your error because you did not encode com.org.BatteryManager.BatteryView or in the wrong place in your java files.
walta
source share