Since: API level 15
public class

StatusbarIconItem.AttributeColour

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.custom.StatusbarIconItem.AttributeColour

Class Overview

Class for attribute and corresponding color.

Since
API level 15
Version 2.4

Summary

Public Constructors
AttributeColour()
Default class constructor.
AttributeColour(int attribute, int color)
Class constructor.
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

Public Constructors

public AttributeColour ()

Since: API level 15

Default class constructor.

Since
API level 15
Version 2.4

public AttributeColour (int attribute, int color)

Since: API level 15

Class constructor.

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()));

 
Since
API level 15
Version 2.4

Public Methods

public int getAttribute ()

Since: API level 15

This method gets the Attribute, internal member assigned in the constructor.

Returns
  • Attribute value assigned in the constructor.
Since
API level 15
Version 2.4

public int getColour ()

Since: API level 15

This method gets the Attribute, internal member assigned in the constructor.

Returns
  • Color value assigned in the constructor.
Since
API level 15
Version 2.4

public void setAttributeColour (int attribute, int color)

Since: API level 15

This method sets the Attribute and corresponding Color values.

Parameters
attribute The relevant attribute for status bar icon.
color The specified color.
Since
API level 15
Version 2.4