如下效果图 代码如下 //// CarViewClass.h// car1//// Created by Mica001 on 11-8-25.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#import <UIKit/UIKit.h>@interface CarViewClass :
1、重写gallery,设置其旋转 public class GalleryFlow extends Gallery { private Camera mCamera = new Camera();//相机类 private int mMaxRotationAngle = 60;//最大转动角度 private int mMaxZoom = -300;最大缩放值 priv
public Bitmap invertedImg() {//1. 倒立图Matrix matrix = new Matrix();matrix.preScale(1, -1);int w = mBitmap.getWidth();int h = mBitmap.getHeight();Bitmap reflectionImg = Bitmap.createBitmap(mBit
自定义了layoutManager+RecyclerView,直接上代码 public class MyLayoutManager extends RecyclerView.LayoutManager {private int mSumDx = 0;private int mTotalWidth = 0;private int mItemWidth, mItemHeight;private S