本文整理了Java中android.widget.ViewFlipper.showNext()
方法的一些代码示例,展示了ViewFlipper.showNext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewFlipper.showNext()
方法的具体详情如下:
包路径:android.widget.ViewFlipper
类名称:ViewFlipper
方法名:showNext
暂无
代码示例来源:origin: stackoverflow.com
ViewFlipper vf = (ViewFlipper) findViewById( R.id.viewFlipper );
vf.showNext();
代码示例来源:origin: stackoverflow.com
public void run() {
handler.postDelayed(runnable, 3000);
imageFrame.showNext();
imageFrame.setInAnimation(inFromRightAnimation());
imageFrame.setOutAnimation(outToLeftAnimation());
imageFrame.showNext();
} else if (e2.getX() - e1.getX() > SWIPE_MIN_DISTANCE
&& Math.abs(velocityX) > SWIPE_THRESHOLD_VELOCITY) {
代码示例来源:origin: stackoverflow.com
ViewFlipper viewFlipper = (ViewFlipper) findViewById(R.id.myViewFlipper);
// you can switch between next and previous layout and display it
viewFlipper.showNext();
viewFlipper.showPrevious();
// or you can switch selecting the layout that you want to display
viewFlipper.setDisplayedChild(1);
viewFlipper.setDisplayedChild(viewFlipper.indexOfChild(findViewById(R.id.secondLayout)
代码示例来源:origin: stackoverflow.com
vf.showNext();
代码示例来源:origin: stackoverflow.com
viewFlipper.setOutAnimation(this, R.anim.out_to_right);
viewFlipper.showNext();
代码示例来源:origin: stackoverflow.com
ViewFlipper vf = (ViewFlipper) findViewById( R.id.viewFlipper );
if (mCurrentTime == //whatever time you want) {
vf.showNext();
}
代码示例来源:origin: xiangyunwan/ImageEditor-Android-master
/**
* 跳转至贴图详情列表
*
* @param path
*/
public void swipToStickerDetails(String path) {
mStickerAdapter.addStickerImages(path);
flipper.showNext();
}
代码示例来源:origin: stackoverflow.com
ViewFlipper flipper = (ViewFlipper) findViewById(R.id.flipper);
//Inflate the Views
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v1 = inflater.inflate(R.layout.t1, null);
View v2 = inflater.inflate(R.layout.t2, null);
View v3 = inflater.inflate(R.layout.t3, null);
//Add the views to the flipper
viewFlipper.addView(v1);
viewFlipper.addView(v2);
viewFlipper.addView(v3);
//Move between them
flipper.showNext();
flipper.showPrevious();
代码示例来源:origin: stackoverflow.com
ViewFlipper flipper = (ViewFlipper) findViewById(R.id.flipper);
//Inflate the Views
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View v1 = inflater.inflate(R.layout.t1, null);
View v2 = inflater.inflate(R.layout.t2, null);
View v3 = inflater.inflate(R.layout.t3, null);
//Add the views to the flipper
viewFlipper.addView(v1);
viewFlipper.addView(v2);
viewFlipper.addView(v3);
//Move between them
flipper.showNext();
flipper.showPrevious();
代码示例来源:origin: stackoverflow.com
ViewFlipper flip = (ViewFlipper)findViewById(R.id.flipper);
flip.showNext();
flip.showPrevious();
代码示例来源:origin: stackoverflow.com
ViewFlipper vflipper;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
vflipper = (ViewFlipper) findViewById(R.id.viewFlipper);
vflipper.setInAnimation(this, android.R.anim.slide_in_left);
vflipper.setOutAnimation(this, android.R.anim.slide_out_right);
Button btn = (Button) findViewById(R.id.btn);
btn.setOnClickListener(this);
}
public void onClick(View v)
{
vflipper.showNext();
}
代码示例来源:origin: livroandroid/5ed
private void proximaView() {
ViewFlipper flip = (ViewFlipper) findViewById(R.id.flip);
// animação de saída da view atual
Animation out = AnimationUtils.loadAnimation(this, android.R.anim.slide_out_right);
out.setDuration(2000);
// animação de entrada da próxima view
Animation in = AnimationUtils.loadAnimation(this, R.anim.fade_in);
in.setDuration(2000);
// Configura a animação de entrada e saída
flip.setInAnimation(in);
flip.setOutAnimation(out);
// Troca para a próxima view
flip.showNext();
}
}
代码示例来源:origin: ChessLuo/TextBannerView
@Override
public void run() {
if (isStarted){
setInAndOutAnimation(inAnimResId, outAnimResId);
mViewFlipper.showNext();//手动显示下一个子view。
postDelayed(this,mInterval + animDuration);
}else {
stopViewAnimator();
}
}
}
代码示例来源:origin: xiangyunwan/ImageEditor-Android-master
@Override
public void onClick(View v) {
activity.mode = EditImageActivity.MODE_STICKERS;
activity.mStirckerFragment.getmStickerView().setVisibility(
View.VISIBLE);
activity.bottomGallery.setCurrentItem(1);
activity.bannerFlipper.showNext();
}
}// end inner class
代码示例来源:origin: JingYeoh/RollingLayout
@Override
public void showNext() {
super.showNext();
if (onRollingChangedListener != null) {
onRollingChangedListener.onRollingChanged(this, getDisplayedChild(), getChildCount());
}
}
代码示例来源:origin: stackoverflow.com
ViewFlipper viewFlipper = (ViewFlipper) findViewById(R.id.myViewFlipper);
// you can switch between next and previous layout and display it
viewFlipper.showNext();
viewFlipper.showPrevious();
// or you can switch selecting the layout that you want to display
viewFlipper.setDisplayedChild(1);
viewFlipper.setDisplayedChild(viewFlipper.indexOfChild(findViewById(R.id.secondLayout)
代码示例来源:origin: stackoverflow.com
ViewFlipper viewFlipper = (ViewFlipper) findViewById(R.id.myViewFlipper);
// you can switch between next and previous layout and display it
viewFlipper.showNext();
viewFlipper.showPrevious();
// or you can switch selecting the layout that you want to display
viewFlipper.setDisplayedChild(1);
viewFlipper.setDisplayedChild(viewFlipper.indexOfChild(findViewById(R.id.secondLayout)
代码示例来源:origin: xiangyunwan/ImageEditor-Android-master
@Override
public void onClick(View v) {
activity.mode = EditImageActivity.MODE_FILTER;
activity.mFliterListFragment.setCurrentBitmap(activity.mainBitmap);
activity.mainImage.setImageBitmap(activity.mainBitmap);
activity.mainImage.setDisplayType(ImageViewTouchBase.DisplayType.FIT_TO_SCREEN);
activity.mainImage.setScaleEnabled(false);
activity.bottomGallery.setCurrentItem(2);
activity.bannerFlipper.showNext();
}
}// end inner class
代码示例来源:origin: jruesga/rview
public void showSecondaryHierarchyPage(T o) {
mBinding.flipper.setInAnimation(getContext(), R.anim.slide_in_right);
mBinding.flipper.setOutAnimation(getContext(), R.anim.slide_out_left);
mBinding.flipper.showNext();
fetchSecondaryData(o);
}
}
代码示例来源:origin: stackoverflow.com
ViewFlipper viewFlipper= (ViewFlipper) findViewById(R.id.flipper);
View v1 = LayoutInflater.from(mContext).inflate(R.layout.layout_1, null, false);
View v2 = LayoutInflater.from(mContext).inflate(R.layout.layout_2, null, false);
View v3 = LayoutInflater.from(mContext).inflate(R.layout.layout_3, null, false);
View v4 = LayoutInflater.from(mContext).inflate(R.layout.layout_4, null, false);
viewFlipper.addView(v1);
viewFlipper.addView(v2);
viewFlipper.addView(v3);
viewFlipper.addView(v4);
viewFlipper.showNext();
viewFlipper.showPrevious();
内容来源于网络,如有侵权,请联系作者删除!