I want to use it in a different class in Android, to get the status of it.
class method is declared
the public class adaptador extends to BaseAdapter {
and the method
< Code> @Override public view getView (* int position *, see Converter V, view group guardian) {Final View View; Final View Holder Holder; If (tap == convertive Vive) {view = mLayoutInflater.inflate (mResourceId, parent, wrong); Holder = new viewholder (); Look steady! = Null; Holder.image = (ImageView) view.findViewById (R.id.image); Holder.title = (TextView) view.findViewById (R.id.title); View.setTag (holder); } Else {view = convertirView; Holder = (seeholder) view.getTag (); } Tie footage (holder, position); Return view; }
I want to get the status of this method.
post
viewpager.setOnPageChangedListener (New OnPageChangedListener) {@Override Public Zero onPageScrolled (integer status, Name positionOffset int positionOffsetPixels) {} @Override Public Zero onPageSelected (integer position) {// state is your current status} @Override page; Public Zero on SkyStolt ChangeZ (Int State) {}});
No comments:
Post a Comment