IOS
hefeixia
2021-02-18 49f3c1374873f73dbde2983ca0fcf1fb10bfedbf
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
40
41
42
43
44
45
46
47
package com.mylhyl.circledialog.view;
 
import android.content.Context;
 
import com.mylhyl.circledialog.internal.CircleParams;
 
/**
 * view的层次结构
 * <pre>
 * CardView
 *    ╚--LinearLayout
 *          ╚--TitleView
 *          ╚--BodyView
 *          ╚--ButtonView
 * </pre>
 * Created by hupei on 2018/8/14.
 */
 
public final class BuildViewConfirmImpl extends AbsBuildView {
    private BodyTextView mBodyTextView;
 
    public BuildViewConfirmImpl(Context context, CircleParams params) {
        super(context, params);
    }
 
    @Override
    public void buildBodyView() {
        buildRootView();
        buildTitleView();
        if (mBodyTextView == null) {
            mBodyTextView = new BodyTextView(mContext, mParams);
            addViewByBody(mBodyTextView);
        }
    }
 
    @Override
    public BodyTextView getBodyView() {
        return mBodyTextView;
    }
 
    @Override
    public void refreshContent() {
        if (mBodyTextView != null) {
            mBodyTextView.refreshText();
        }
    }
}