@@ -0,0 +1,1289 @@
+package com.dev.bins.shop.widget;%0A%0Aimport android.os.CountDownTimer;%0Aimport android.widget.TextView;%0A%0Aimport com.dev.bins.shop.R;%0A%0A/**%0A * Created by bin on 27/02/2017.%0A */%0A%0Apublic class CountDownView extends CountDownTimer %7B%0A    /**%0A     * @param millisInFuture    The number of millis in the future from the call%0A     * to %7B@link #start()%7D until the countdown is done and %7B@link #onFinish()%7D%0A     * is called.%0A     * @param countDownInterval The interval along the way to receive%0A     * %7B@link #onTick(long)%7D callbacks.%0A     */%0A%0A    TextView mCountDownView;%0A    String s_end;%0A    public CountDownView(TextView countDownView,String end, long millisInFuture, long countDownInterval) %7B%0A        super(millisInFuture, countDownInterval);%0A        mCountDownView = countDownView;%0A        this.s_end = end;%0A    %7D%0A%0A    public CountDownView(TextView mCountDownView,String end) %7B%0A        super(6000, 1000);%0A        this.mCountDownView = mCountDownView;%0A        this.s_end = end;%0A    %7D%0A%0A    @Override%0A    public void onTick(long millisUntilFinished) %7B%0A        mCountDownView.setText(millisUntilFinished/1000+%22%E7%A7%92%E5%90%8E%E5%8F%AF%E9%87%8D%E6%96%B0%E5%8F%91%E9%80%81%22);%0A        mCountDownView.setEnabled(false);%0A    %7D%0A%0A    @Override%0A    public void onFinish() %7B%0A        mCountDownView.setEnabled(true);%0A        mCountDownView.setText(s_end);%0A    %7D%0A%7D%0A

add countdownview