Ver Código Fonte

聊聊文字展开图片不显示bug修改

huyuguo 5 anos atrás
pai
commit
525d290dd6

+ 4 - 1
app/src/main/java/com/electric/chargingpile/activity/ChatContentListActivity.java

199
        }
199
        }
200
200
201
        if (bean.targetType == ChatRecommendBean.TARGET_TYPE_VIDEO) {
201
        if (bean.targetType == ChatRecommendBean.TARGET_TYPE_VIDEO) {
202
             MobclickAgent.onEvent(getApplicationContext(), "1072");
202
            MobclickAgent.onEvent(getApplicationContext(), "1072");
203
            MobclickAgent.onEvent(getApplicationContext(), "1092");
203
            MobclickAgent.onEvent(getApplicationContext(), "1092");
204
            NetworkUtils.NetworkType networkType = NetworkUtils.getNetworkType();
204
            NetworkUtils.NetworkType networkType = NetworkUtils.getNetworkType();
205
            switch (networkType) {
205
            switch (networkType) {
899
        }
899
        }
900
900
901
        private void showPhotos() {
901
        private void showPhotos() {
902
            ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) photoPager.getLayoutParams();
903
            params.height = screenHeight - statusBarHeight - DensityUtil.dip2px(getContext(), 44) - bottomView.getMeasuredHeight();
904
            photoPager.setLayoutParams(params);
902
        }
905
        }
903
906
904
907

+ 2 - 3
app/src/main/res/layout/fragment_chat_content_pictures.xml

9
    <com.electric.chargingpile.iview.ChatPhotoViewPager
9
    <com.electric.chargingpile.iview.ChatPhotoViewPager
10
        android:id="@+id/photoPager"
10
        android:id="@+id/photoPager"
11
        android:layout_width="0dp"
11
        android:layout_width="0dp"
12
        android:layout_height="0dp"
13
        app:layout_constraintBottom_toTopOf="@+id/bottomView"
12
        android:layout_height="460dp"
14
        app:layout_constraintLeft_toLeftOf="parent"
13
        app:layout_constraintLeft_toLeftOf="parent"
15
        app:layout_constraintRight_toRightOf="parent"
14
        app:layout_constraintRight_toRightOf="parent"
16
        app:layout_constraintTop_toBottomOf="@+id/navBar"
15
        app:layout_constraintTop_toBottomOf="@+id/navBar"
84
            android:layout_width="match_parent"
83
            android:layout_width="match_parent"
85
            android:layout_height="52dp"
84
            android:layout_height="52dp"
86
            app:layout_constraintBottom_toTopOf="@+id/userInfo"
85
            app:layout_constraintBottom_toTopOf="@+id/userInfo"
87
            tools:background="#39bd00">
86
            tools:background="#9748a8">
88
87
89
            <android.support.constraint.ConstraintLayout
88
            <android.support.constraint.ConstraintLayout
90
                android:id="@+id/topicInfo"
89
                android:id="@+id/topicInfo"