本文整理匯總了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 );
}