List of usage examples for android.widget AdapterView setVisibility
@RemotableViewMethod public void setVisibility(@Visibility int visibility)
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); }