dxh 6 years ago
parent
commit
728a781497

+ 7 - 11
app/src/main/java/com/electric/chargingpile/fragment/SvVideoShowView.java

91
            if (targetType == 23) {
91
            if (targetType == 23) {
92
                view = LayoutInflater.from(activity).inflate(R.layout.view_show_view, null);
92
                view = LayoutInflater.from(activity).inflate(R.layout.view_show_view, null);
93
                initPlayer(view);
93
                initPlayer(view);
94
                initBottom(view);
95
                viewGroup.addView(view);
96
97
                setData();
98
94
99
            } else if (targetType == 24) {
95
            } else if (targetType == 24) {
100
                view = LayoutInflater.from(activity).inflate(R.layout.view_show_zoom, null);
96
                view = LayoutInflater.from(activity).inflate(R.layout.view_show_zoom, null);
101
                initZoomPhoto(view);
97
                initZoomPhoto(view);
102
                initBottom(view);
103
                viewGroup.addView(view);
104
105
                setData();
106
            }
98
            }
99
            initBottom(view);
100
            viewGroup.addView(view);
101
102
            setData();
107
        }
103
        }
108
    }
104
    }
109
105
153
        if (num < 999) {
149
        if (num < 999) {
154
            re = re + num;
150
            re = re + num;
155
        } else {
151
        } else {
156
            float result = num / 1000;
157
            int sl = num % 1000;
152
            float result = num / 10000;
153
            int sl = num % 10000;
158
            if (sl == 0) {
154
            if (sl == 0) {
159
                re = String.format(Locale.CHINESE, "%f", result) + "W";
155
                re = String.format(Locale.CHINESE, "%f", result) + "W";
160
            } else {
156
            } else {
385
    }
381
    }
386
382
387
    public void updateView() {
383
    public void updateView() {
388
384
        ToastUtil.showToast(activity, "updateView", Toast.LENGTH_LONG);
389
    }
385
    }
390
386
391
    public void initAndPlay() {
387
    public void initAndPlay() {