kimi
2021-02-18 749a5510a9f014446a3cd6ba57b3cb0cc8148dc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.mylhyl.circledialog.view;
 
import android.content.Context;
import android.view.View;
 
import com.mylhyl.circledialog.internal.BackgroundHelper;
import com.mylhyl.circledialog.internal.CircleParams;
 
/**
 * 对话框确定按钮与取消的视图
 * Created by hupei on 2017/3/30.
 */
final class ConfirmButton extends AbsButton {
 
    public ConfirmButton(Context context, CircleParams circleParams) {
        super(context, circleParams);
    }
 
    @Override
    protected void initView() {
        setOrientation(HORIZONTAL);
    }
 
    @Override
    protected void setNegativeButtonBackground(View view, int backgroundColor, CircleParams circleParams) {
        BackgroundHelper.handleNegativeButtonBackground(view, backgroundColor, circleParams);
    }
 
    @Override
    protected void setNeutralButtonBackground(View view, int backgroundColor, CircleParams circleParams) {
        BackgroundHelper.handleNeutralButtonBackground(view, backgroundColor, circleParams);
    }
 
    @Override
    protected void setPositiveButtonBackground(View view, int backgroundColor, CircleParams circleParams) {
        BackgroundHelper.handlePositiveButtonBackground(view, backgroundColor, circleParams);
    }
 
}