Example usage for android.support.v4.view PointerIconCompat getSystemIcon

List of usage examples for android.support.v4.view PointerIconCompat getSystemIcon

Introduction

In this page you can find the example usage for android.support.v4.view PointerIconCompat getSystemIcon.

Prototype

public static PointerIconCompat getSystemIcon(Context context, int style) 

Source Link

Document

Gets a system pointer icon for the given style.

Usage

From source file:android.support.design.internal.BottomNavigationItemView.java

@Override
public void setEnabled(boolean enabled) {
    super.setEnabled(enabled);
    mSmallLabel.setEnabled(enabled);//w  w  w  .j  a v  a 2  s. com
    mLargeLabel.setEnabled(enabled);
    mIcon.setEnabled(enabled);

    if (enabled) {
        ViewCompat.setPointerIcon(this,
                PointerIconCompat.getSystemIcon(getContext(), PointerIconCompat.TYPE_HAND));
    } else {
        ViewCompat.setPointerIcon(this, null);
    }

}