本文整理汇总了Java中at.technikum.mti.fancycoverflow.FancyCoverFlow类的典型用法代码示例。如果您正苦于以下问题:Java FancyCoverFlow类的具体用法?Java FancyCoverFlow怎么用?Java FancyCoverFlow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FancyCoverFlow类属于at.technikum.mti.fancycoverflow包,在下文中一共展示了FancyCoverFlow类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCoverFlowItem
import at.technikum.mti.fancycoverflow.FancyCoverFlow; //导入依赖的package包/类
@Override
public View getCoverFlowItem(int i, View reuseableView, ViewGroup viewGroup) {
ImageView imageView = null;
if (reuseableView != null) {
imageView = (ImageView) reuseableView;
} else {
Bitmap image = this.getItem(i);
imageView = new ImageView(viewGroup.getContext());
imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
if(image.getWidth() > image.getHeight())
imageView.setLayoutParams(new FancyCoverFlow.LayoutParams(320, 220));
else
imageView.setLayoutParams(new FancyCoverFlow.LayoutParams(220, 320));
}
imageView.setImageBitmap(this.getItem(i));
return imageView;
}
示例2: getCoverFlowItem
import at.technikum.mti.fancycoverflow.FancyCoverFlow; //导入依赖的package包/类
@Override
public View getCoverFlowItem(int position, View reusableView, ViewGroup parent) {
ImageView imageView = null;
if (reusableView != null) {
imageView = (ImageView) reusableView;
} else {
imageView = new ImageView(parent.getContext());
imageView.setLayoutParams(new FancyCoverFlow.LayoutParams(LayoutParams.WRAP_CONTENT,256));
}
imageView.setBackgroundResource( mDataList[ position ] );
return imageView;
}
示例3: initFancy
import at.technikum.mti.fancycoverflow.FancyCoverFlow; //导入依赖的package包/类
private void initFancy(){
petImages = new ArrayList<Bitmap>();
imagesAdapter=new FancyCoverFlowSampleAdapter(petImages);
fancyCoverFlow.setAdapter(imagesAdapter);
fancyCoverFlow.setUnselectedAlpha(1.0f);
fancyCoverFlow.setUnselectedSaturation(0.0f);
fancyCoverFlow.setUnselectedScale(0.5f);
fancyCoverFlow.setMaxRotation(0);
fancyCoverFlow.setScaleDownGravity(0.2f);
fancyCoverFlow.setActionDistance(FancyCoverFlow.ACTION_DISTANCE_AUTO);
}
示例4: findViews
import at.technikum.mti.fancycoverflow.FancyCoverFlow; //导入依赖的package包/类
@Override
public void findViews() {
mFancyCoverFlowList = ( ListView )findViewById( R.id.fancyCoverFlowListId );
mFancyCoverFlow = ( FancyCoverFlow )findViewById( R.id.fancyCoverFlowId );
}