private void setupSharedViewPool(ItemBridgeAdapter.ViewHolder bridgeVh) { RowPresenter rowPresenter = (RowPresenter) bridgeVh.getPresenter(); RowPresenter.ViewHolder rowVh = rowPresenter.getRowViewHolder(bridgeVh.getViewHolder()); if (rowVh instanceof ListRowPresenter.ViewHolder) { HorizontalGridView view = ((ListRowPresenter.ViewHolder) rowVh).getGridView(); // Recycled view pool is shared between all list rows if (mRecycledViewPool == null) { mRecycledViewPool = view.getRecycledViewPool(); } else { view.setRecycledViewPool(mRecycledViewPool); } ItemBridgeAdapter bridgeAdapter = ((ListRowPresenter.ViewHolder) rowVh).getBridgeAdapter(); if (mPresenterMapper == null) { mPresenterMapper = bridgeAdapter.getPresenterMapper(); } else { bridgeAdapter.setPresenterMapper(mPresenterMapper); } } }
private boolean isVerticalScrolling() { // don't run transition return mHeadersFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE || mRowsFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; }
private boolean isVerticalScrolling() { // don't run transition return mHeadersSupportFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE || mRowsSupportFragment.getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; }
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; }
@Override protected void onFinishInflate() { super.onFinishInflate(); mListView = (HorizontalGridView) getContentsView(); }
public LiveDataRowPresenterViewHolder(View rootView, HorizontalGridView gridView, ListRowPresenter p) { super(rootView, gridView, p); }