Skip to content

Latest commit

 

History

History
79 lines (68 loc) · 1.61 KB

USAGE_VIEWS.md

File metadata and controls

79 lines (68 loc) · 1.61 KB

Usage of views modules

java

IconicsDrawable drawable = mIconicsCheckableTextView.getCheckedIconicsDrawableStart();
if (drawable == null) {
    drawable = new IconicsDrawable(getContext());
    mIconicsCheckableTextView.setCheckedIconicsDrawableStart(drawable);
}
drawable.icon(FontAwesome.Icon.faw_android).color(Color.GREEN)

kotlin

mIconicsCheckableTextView.startIcon(checked = true) {
    icon(FontAwesome.Icon.faw_android)
    color(Color.GREEN)
}

java

IconicsDrawable drawable = mIconicsCompoundButton.getCheckedIcon();
if (drawable == null) {
    drawable = new IconicsDrawable(getContext());
    mIconicsCompoundButton.setCheckedIcon(drawable);
}
drawable.icon(FontAwesome.Icon.faw_android).color(Color.GREEN)

kotlin

mIconicsCompoundButton.icon(checked = true) {
    icon(FontAwesome.Icon.faw_android)
    color(Color.GREEN)
}

java

IconicsDrawable drawable = mIconicsImageView.getIcon();
if (drawable == null) {
    drawable = new IconicsDrawable(getContext());
    mIconicsImageView.setIcon(drawable);
}
drawable.icon(FontAwesome.Icon.faw_android).color(Color.GREEN)

kotlin

mIconicsImageView.icon {
    icon(FontAwesome.Icon.faw_android)
    color(Color.GREEN)
}

java

IconicsDrawable drawable = mIconicsTextView.getStartIcon();
if (drawable == null) {
    drawable = new IconicsDrawable(getContext());
    mIconicsTextView.setStartIcon(drawable);
}
drawable.icon(FontAwesome.Icon.faw_android).color(Color.GREEN)

kotlin

mIconicsTextView.startIcon {
    icon(FontAwesome.Icon.faw_android)
    color(Color.GREEN)
}