Example usage for android.view View setVerticalScrollBarEnabled

List of usage examples for android.view View setVerticalScrollBarEnabled

Introduction

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

Prototype

public void setVerticalScrollBarEnabled(boolean verticalScrollBarEnabled) 

Source Link

Document

Define whether the vertical scrollbar should be drawn or not.

Usage

From source file:li.barter.fragments.BookDetailFragment.java

@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container,
        final Bundle savedInstanceState) {
    init(container, savedInstanceState);
    setActionBarTitle(R.string.Book_Detail_fragment_title);

    final View view = inflater.inflate(R.layout.fragment_book_detail, container, false);
    view.setVerticalScrollBarEnabled(false);
    initViews(view);//  w  ww.  j a v  a  2s.c om

    getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE
            | WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
    mDeleteBookDialogFragment = (AlertDialogFragment) getFragmentManager()
            .findFragmentByTag(FragmentTags.DIALOG_DELETE_BOOK);

    final AbstractBarterLiFragment fragment = ((AbstractBarterLiActivity) getActivity())
            .getCurrentMasterFragment();

    if (fragment != null && fragment instanceof BooksPagerFragment) {
        mLoadedIndividually = false;
    } else {
        mLoadedIndividually = true;
    }

    if (savedInstanceState == null) {
        mBookDetails = getArguments();
    } else {
        mBookDetails = savedInstanceState.getBundle(Keys.BOOK_DETAILS);
    }
    setHasOptionsMenu(mLoadedIndividually);
    loadBookDetails();
    return view;
}