Example usage for android.view View SCROLLBAR_POSITION_DEFAULT

List of usage examples for android.view View SCROLLBAR_POSITION_DEFAULT

Introduction

In this page you can find the example usage for android.view View SCROLLBAR_POSITION_DEFAULT.

Prototype

int SCROLLBAR_POSITION_DEFAULT

To view the source code for android.view View SCROLLBAR_POSITION_DEFAULT.

Click Source Link

Document

Position the scroll bar at the default position as determined by the system.

Usage

From source file:com.appunite.list.FastScroller.java

public void setScrollbarPosition(int position) {
    if (position == View.SCROLLBAR_POSITION_DEFAULT) {
        position = Compat.isLayoutRtl(mList) ? View.SCROLLBAR_POSITION_LEFT : View.SCROLLBAR_POSITION_RIGHT;
    }/*  w w w .j  ava 2 s  .  c om*/
    mPosition = position;
    switch (position) {
    default:
    case View.SCROLLBAR_POSITION_RIGHT:
        mOverlayDrawable = mOverlayDrawableRight;
        break;
    case View.SCROLLBAR_POSITION_LEFT:
        mOverlayDrawable = mOverlayDrawableLeft;
        break;
    }
}