Example usage for com.facebook.react.uimanager ViewProps VISIBLE

List of usage examples for com.facebook.react.uimanager ViewProps VISIBLE

Introduction

In this page you can find the example usage for com.facebook.react.uimanager ViewProps VISIBLE.

Prototype

String VISIBLE

To view the source code for com.facebook.react.uimanager ViewProps VISIBLE.

Click Source Link

Usage

From source file:com.rnnestedscrollview.ReactNestedScrollView.java

License:MIT License

@Override
public void draw(Canvas canvas) {
    if (mEndFillColor != Color.TRANSPARENT) {
        final View content = getChildAt(0);
        if (mEndBackground != null && content != null && content.getBottom() < getHeight()) {
            mEndBackground.setBounds(0, content.getBottom(), getWidth(), getHeight());
            mEndBackground.draw(canvas);
        }/*  w  w w .j a  v  a  2 s. c  o m*/
    }
    getDrawingRect(mRect);

    switch (mOverflow) {
    case ViewProps.VISIBLE:
        break;
    default:
        canvas.clipRect(mRect);
        break;
    }

    super.draw(canvas);
}