/**
* 状态保存和恢复
*/
public class SaveRestoreView extends View {
private Paint mPaint;
public SaveRestoreView(Context context) {
this(context, null);
}
public SaveRestoreView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public SaveRestoreView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
init();
}
private void init() {
mPaint = new Paint();
mPaint.setColor(Color.RED);
mPaint.setStrokeWidth(4);
mPaint.set