메소드 | 설명 | |
---|---|---|
IconDrawable ( android.content.Context context, Icon icon ) : android.graphics |
Create an IconDrawable.
|
|
IconDrawable ( android.content.Context context, string iconKey ) : android.graphics |
Create an IconDrawable.
|
|
actionBarSize ( ) : |
Set the size of this icon to the standard Android ActionBar.
|
|
alpha ( int alpha ) : |
Set the alpha of this drawable.
|
|
clearColorFilter ( ) : void | ||
color ( int color ) : |
Set the color of the drawable.
|
|
colorRes ( int colorRes ) : |
Set the color of the drawable.
|
|
draw ( |
||
setState ( int stateSet ) : bool | ||
sizeDp ( int size ) : |
Set the size of the drawable.
|
|
sizePx ( int size ) : |
Set the size of the drawable.
|
|
sizeRes ( int dimenRes ) : |
Set the size of the drawable.
|
메소드 | 설명 | |
---|---|---|
convertDpToPx ( android.content.Context context, float dp ) : int | ||
init ( android.content.Context context, Icon icon ) : void | ||
isEnabled ( int stateSet ) : bool |
public IconDrawable ( android.content.Context context, Icon icon ) : android.graphics | ||
context | android.content.Context | Your activity or application context. |
icon | Icon | The icon you want this drawable to display. |
리턴 | android.graphics |
public IconDrawable ( android.content.Context context, string iconKey ) : android.graphics | ||
context | android.content.Context | Your activity or application context. |
iconKey | string | The icon key you want this drawable to display. |
리턴 | android.graphics |
public alpha ( int alpha ) : |
||
alpha | int | The alpha, between 0 (transparent) and 255 (opaque). |
리턴 |
public color ( int color ) : |
||
color | int | The color, usually from android.graphics.Color or 0xFF012345. |
리턴 |
public colorRes ( int colorRes ) : |
||
colorRes | int | The color resource, from your R file. |
리턴 |
public sizeDp ( int size ) : |
||
size | int | The size in density-independent pixels (dp). |
리턴 |
public sizePx ( int size ) : |
||
size | int | The size in pixels (px). |
리턴 |
public sizeRes ( int dimenRes ) : |
||
dimenRes | int | The dimension resource. |
리턴 |