Просмотр исходного кода

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

huyuguo лет назад: 5
Родитель
Сommit
525d290dd6

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

@ -199,7 +199,7 @@ public class ChatContentListActivity extends AppCompatActivity {
199 199
        }
200 200
201 201
        if (bean.targetType == ChatRecommendBean.TARGET_TYPE_VIDEO) {
202
             MobclickAgent.onEvent(getApplicationContext(), "1072");
202
            MobclickAgent.onEvent(getApplicationContext(), "1072");
203 203
            MobclickAgent.onEvent(getApplicationContext(), "1092");
204 204
            NetworkUtils.NetworkType networkType = NetworkUtils.getNetworkType();
205 205
            switch (networkType) {
@ -899,6 +899,9 @@ public class ChatContentListActivity extends AppCompatActivity {
899 899
        }
900 900
901 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,8 +9,7 @@
9 9
    <com.electric.chargingpile.iview.ChatPhotoViewPager
10 10
        android:id="@+id/photoPager"
11 11
        android:layout_width="0dp"
12
        android:layout_height="0dp"
13
        app:layout_constraintBottom_toTopOf="@+id/bottomView"
12
        android:layout_height="460dp"
14 13
        app:layout_constraintLeft_toLeftOf="parent"
15 14
        app:layout_constraintRight_toRightOf="parent"
16 15
        app:layout_constraintTop_toBottomOf="@+id/navBar"
@ -84,7 +83,7 @@
84 83
            android:layout_width="match_parent"
85 84
            android:layout_height="52dp"
86 85
            app:layout_constraintBottom_toTopOf="@+id/userInfo"
87
            tools:background="#39bd00">
86
            tools:background="#9748a8">
88 87
89 88
            <android.support.constraint.ConstraintLayout
90 89
                android:id="@+id/topicInfo"