Java Code Examples for android.support.v17.leanback.widget.HorizontalGridView#SCROLL_STATE_IDLE
The following examples show how to use
android.support.v17.leanback.widget.HorizontalGridView#SCROLL_STATE_IDLE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BrowseFragment.java From adt-leanback-support with Apache License 2.0 | 5 votes |
private boolean isVerticalScrolling() { // don't run transition return mHeadersFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE || mRowsFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; }
Example 2
Source File: BrowseSupportFragment.java From adt-leanback-support with Apache License 2.0 | 5 votes |
private boolean isVerticalScrolling() { // don't run transition return mHeadersSupportFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE || mRowsSupportFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; }
Example 3
Source File: TVDemoActivity.java From BuildingForAndroidTV with MIT License | 5 votes |
private boolean isVerticalScrolling() { try { // don't run transition return getVerticalGridView(headersFragment).getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE || getVerticalGridView(rowsFragment).getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; } catch (Exception e) { e.printStackTrace(); } return false; }
Example 4
Source File: MainActivity.java From BuildingForAndroidTV with MIT License | 5 votes |
private boolean isVerticalScrolling() { try { // don't run transition return getVerticalGridView(headersFragment).getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE || getVerticalGridView(rowsFragment).getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; } catch (Exception e) { e.printStackTrace(); } return false; }