Example usage for android.widget AdapterView setVisibility

List of usage examples for android.widget AdapterView setVisibility

Introduction

In this page you can find the example usage for android.widget AdapterView setVisibility.

Prototype

@RemotableViewMethod
public void setVisibility(@Visibility int visibility) 

Source Link

Document

Set the visibility state of this view.

Usage

From source file:us.nineworlds.serenity.ui.browser.movie.MovieMenuDrawerOnItemClickedListener.java

private void playAllFromQueue(AdapterView<?> parent, SerenityMultiViewVideoActivity activity) {
    menuDrawer.closeDrawers();// w  w  w .  j av a  2 s. c  o  m
    if (!activity.getPackageManager().hasSystemFeature("android.hardware.touchscreen")) {
        parent.setVisibility(View.INVISIBLE);
    }
    View gallery = activity.findViewById(R.id.moviePosterGallery);
    if (!activity.isGridViewActive()) {
        gallery.requestFocusFromTouch();
    } else {
        TwoWayGridView grid = (TwoWayGridView) activity.findViewById(R.id.movieGridView);
        grid.requestFocusFromTouch();
    }
    vpUtils.playAllFromQueue(activity);
}