import android.animation.Animator; import android.animation.IntEvaluator; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.widget.LinearLayout; import com.tongfantravel.passenger.R; /** * Created by Administrator on 2016/11/15. */ public class StretchView extends LinearLayout { int contentViewId; int stretchViewId; int dutation = 300; private View contentView; private View stretchView; private boolean isOpen = false; private int stretchViewHeight; public void setOnStretchListener(OnStretchListener onStretchListener) { this.onStretchListener = onStretchListener; } private OnStretchListener onStretchListener; public StretchView(Context context) { super(context); init(context, null); }
自定义伸缩 控件 带动画结束后 和开始前的回调
最新推荐文章于 2021-05-26 00:59:17 发布