List of usage examples for android.view View addTouchables
public void addTouchables(ArrayList<View> views)
From source file:com.aincc.libtest.activity.flip.FlipViewGroup.java
/** * We only want the current page that is being shown to be touchable. *///from ww w . j a v a 2 s . c om @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a ViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == currentItem) { child.addTouchables(views); } } } }
From source file:com.jzh.stuapp.view.MyViewPager.java
/** * We only want the current page that is being shown to be touchable. *//*from ww w . j a v a 2 s.c o m*/ @Override public void addTouchables(ArrayList<View> views) { for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } } } }
From source file:com.cnpeng.cnpeng_mydemosfrom2016_12.a_12_GetLocalFiles_VP_FM.CustomNoPreLoadViewPager.java
/** * We only want the current page that is being shown to be touchable. *///w w w . j a v a 2s .c om @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a ViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } } } }
From source file:com.oguzbabaoglu.cardpager.CardPager.java
/** * We only want the current page that is being shown to be touchable. *//*from ww w. j a v a2 s . co m*/ @Override public void addTouchables(@NonNull ArrayList<View> views) { // Note that we don't call super.addTouchables(). // This is okay because a Pager is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == currentItem) { child.addTouchables(views); } } } }
From source file:beichen.douban.ui.view.LazyViewPager.java
/** * We only want the current page that is being shown to be touchable. *//*from w w w .j ava 2s .c o m*/ @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a ViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } } } }
From source file:administrator.example.com.myscrollview.VerticalViewPager.java
/** * We only want the current page that is being shown to be touchable. *//*w w w .jav a 2 s.co m*/ @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a ViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } /* end of if */ } /* end of if */ } /* end of for */ }
From source file:com.example.view.VerticalViewPager.java
/** * We only want the current page that is being shown to be touchable. *///from w ww .j ava2 s . com @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a ViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } /* end of if */ } /* end of if */ } /* end of for */ }
From source file:com.cmtv.tv.widget.BaseViewPager.java
/** * We only want the current page that is being shown to be touchable. *//*w ww .j a v a 2s.c o m*/ @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a BaseViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } } } }
From source file:VerticalViewPager.java
/** * We only want the current page that is being shown to be touchable. *//*from w w w.j av a 2 s . c om*/ @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a VerticalViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } } } }
From source file:android.improving.utils.views.cardsview.OrientedViewPager.java
/** * We only want the current page that is being shown to be touchable. *//* www . jav a2 s . c o m*/ @Override public void addTouchables(ArrayList<View> views) { // Note that we don't call super.addTouchables(), which means that // we don't call View.addTouchables(). This is okay because a ViewPager // is itself not touchable. for (int i = 0; i < getChildCount(); i++) { final View child = getChildAt(i); if (child.getVisibility() == VISIBLE) { ItemInfo ii = infoForChild(child); if (ii != null && ii.position == mCurItem) { child.addTouchables(views); } } } }