d class="lines-code">
//                            if (tmp.targetType == chatRecommendBean.targetType &&
144
//                                    tmp.targetId == chatRecommendBean.targetId) {
145
//                                index = i;
146
//                                break;
147
//                            }
148
//                        }
149
//
150
//                        Intent intent = new Intent(getActivity(), VideoDetaislActivity.class);
151
//                        intent.putExtra("list", (Serializable) list);
152
//                        intent.putExtra("pos", index);
153
//                        startActivity(intent);
154
//                    }
155
//                });
158 156
            }
159 157
        });
160 158
@ -166,6 +164,10 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
166 164
        }
167 165
    }
168 166
167
    public void setOnRecyclerItemClickListener(RecyclerItemTypeClickListener onRecyclerItemClickListener) {
168
        this.onRecyclerItemClickListener = onRecyclerItemClickListener;
169
    }
170
169 171
    private void initListener() {
170 172
        iv_ask.setOnClickListener(this);
171 173
        noNetTry.setOnClickListener(this);

+ 20 - 0
app/src/main/java/com/electric/chargingpile/util/Util.java

@ -1,8 +1,15 @@
1 1
package com.electric.chargingpile.util;
2 2

3
import android.app.Activity;
3 4
import android.content.Context;
5
import android.graphics.Color;
6
import android.os.Build;
7
import android.support.v7.app.ActionBar;
8
import android.support.v7.app.AppCompatActivity;
4 9
import android.text.TextUtils;
5 10
import android.util.Log;
11
import android.view.View;
12
import android.view.WindowManager;
6 13

7 14
import com.electric.chargingpile.activity.MainMapActivity;
8 15
import com.electric.chargingpile.data.Zhan;
@ -267,4 +274,17 @@ public class Util {
267 274
        return list2;
268 275
    }
269 276

277
    public static void hideActionBar(AppCompatActivity activity) {
278
        if (Build.VERSION.SDK_INT >= 21) {
279
            View decorView = activity.getWindow().getDecorView();
280
            int option = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE;
281
            decorView.setSystemUiVisibility(option);
282
            activity.getWindow().setStatusBarColor(Color.TRANSPARENT);
283

284
        }
285

286
        ActionBar actionBar = activity.getSupportActionBar();
287
        actionBar.hide();
288
    }
289

270 290
}

+ 6 - 0
app/src/main/res/layout/activity_chat.xml

@ -261,4 +261,10 @@
261 261
262 262
    </LinearLayout>
263 263
264
    <FrameLayout
265
        android:id="@+id/fragment_container"
266
        android:layout_width="match_parent"
267
        android:visibility="gone"
268
        android:layout_height="match_parent"></FrameLayout>
269
264 270
</RelativeLayout>

+ 1 - 1
app/src/main/res/layout/activity_topic.xml

@ -113,7 +113,7 @@
113 113
            android:layout_width="wrap_content"
114 114
            android:layout_height="wrap_content"
115 115
            android:layout_marginBottom="20dp"
116
            android:text="网络跑调了,请重试~"
116
            android:text="网络跑掉了,请重试~"
117 117
            android:textColor="#555"
118 118
            android:textSize="14sp" />
119 119

+ 19 - 0
app/src/main/res/layout/fragment_chat.xml

@ -0,0 +1,19 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<android.support.constraint.ConstraintLayout
3
    xmlns:android="http://schemas.android.com/apk/res/android"
4
    xmlns:app="http://schemas.android.com/apk/res-auto"
5
    xmlns:tools="http://schemas.android.com/tools"
6
    android:background="#0000ff"
7
    android:layout_width="match_parent"
8
    android:layout_height="match_parent">
9
10
    <!--<com.andview.refreshview.XRefreshView-->
11
        <!--android:layout_width="match_parent"-->
12
        <!--android:layout_height="match_parent"-->
13
        <!--app:layout_constraintBottom_toBottomOf="parent"-->
14
        <!--app:layout_constraintEnd_toEndOf="parent"-->
15
        <!--app:layout_constraintStart_toStartOf="parent"-->
16
        <!--app:layout_constraintTop_toTopOf="parent">-->
17
18
    <!--</com.andview.refreshview.XRefreshView>-->
19
</android.support.constraint.ConstraintLayout>

+ 1 - 1
app/src/main/res/layout/view_show_comment.xml

@ -60,7 +60,7 @@
60 60
        <TextView
61 61
            android:layout_width="wrap_content"
62 62
            android:layout_height="wrap_content"
63
            android:text="网络跑调了,请检查网络~"
63
            android:text="网络跑掉了,请检查网络~"
64 64
            android:textColor="#fff"
65 65
            android:textSize="14sp" />
66 66

cdzApp - Gogs: Go Git Service

充电桩app代码

hy 3e008ac643 修复安全漏洞,将分享的SDK初始化所需的值,配置相应Mob的后台 4 years ago
..
ShareSDK 3e008ac643 修复安全漏洞,将分享的SDK初始化所需的值,配置相应Mob的后台 4 years ago