java.lang.Object |
↳ |
com.samsung.android.knox.custom.StatusbarIconItem.AttributeColour |
Class Overview
Class for attribute and corresponding color.
Summary
Public Methods |
int
|
getAttribute()
This method gets the Attribute, internal member assigned in the constructor.
|
int
|
getColour()
This method gets the Attribute, internal member assigned in the constructor.
|
void
|
setAttributeColour(int attribute, int color)
This method sets the Attribute and corresponding Color values.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
AttributeColour
()
Default class constructor.
public
AttributeColour
(int attribute, int color)
Parameters
attribute
| The relevant attribute for status bar icon. |
color
| The specified color. |
Usage
StatusbarIconItem.AttributeColour batteryColor = new StatusbarIconItem.AttributeColour(20, 0xFF8BCC15);
Log.d(TAG,"Battery Level:" + batteryColor.getAttribute() + "% Color: 0x" + Integer.toHexString(batteryColor.getColour()));
|
Public Methods
public
int
getAttribute
()
This method gets the Attribute, internal member assigned in the constructor.
Returns
- Attribute value assigned in the constructor.
public
int
getColour
()
This method gets the Attribute, internal member assigned in the constructor.
Returns
- Color value assigned in the constructor.
public
void
setAttributeColour
(int attribute, int color)
This method sets the Attribute and corresponding Color values.
Parameters
attribute
| The relevant attribute for status bar icon. |
color
| The specified color. |