diff --git a/app/src/main/java/com/gh/gamecenter/qa/comment/NewCommentViewModel.kt b/app/src/main/java/com/gh/gamecenter/qa/comment/NewCommentViewModel.kt index a8b0020f65..75031033c6 100644 --- a/app/src/main/java/com/gh/gamecenter/qa/comment/NewCommentViewModel.kt +++ b/app/src/main/java/com/gh/gamecenter/qa/comment/NewCommentViewModel.kt @@ -132,9 +132,7 @@ open class NewCommentViewModel( fun postComment(content: String, imageUrls: List?, commentEntity: CommentEntity?) { val api = RetrofitManager.getInstance(getApplication()).api val requestMap = hashMapOf() - if (content.isNotEmpty()) { - requestMap["content"] = content - } + requestMap["content"] = content if (!imageUrls.isNullOrEmpty()) { requestMap["images"] = imageUrls } diff --git a/app/src/main/res/layout/item_article_detail_comment.xml b/app/src/main/res/layout/item_article_detail_comment.xml index d8adaf1be6..c1cb6e1fd4 100644 --- a/app/src/main/res/layout/item_article_detail_comment.xml +++ b/app/src/main/res/layout/item_article_detail_comment.xml @@ -7,6 +7,8 @@ + + @@ -21,7 +23,7 @@ android:id="@+id/userIconIv" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="11dp" + android:layout_marginLeft="7dp" android:layout_marginTop="7dp" app:avatar_width="36dp" app:badge_width="12dp" @@ -158,10 +160,11 @@ + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="@id/userInfoContainer" + app:layout_constraintTop_toBottomOf="@+id/collapseTv" + tools:visibility="visible" /> @@ -256,7 +262,7 @@ android:textColor="@color/text_999999" android:textSize="12sp" app:layout_constraintBottom_toTopOf="@+id/divider" - app:layout_constraintStart_toStartOf="@id/contentTv" + app:layout_constraintStart_toStartOf="@id/userInfoContainer" app:layout_constraintTop_toBottomOf="@id/subCommentContainer" tools:text="1F" /> @@ -280,13 +286,14 @@ android:id="@+id/likeCountTv" android:layout_width="wrap_content" android:layout_height="40dp" + android:layout_marginRight="16dp" android:drawableLeft="@drawable/comment_vote_unselect" android:drawablePadding="4dp" android:gravity="center_vertical" android:textColor="@color/text_999999" android:textSize="12sp" app:layout_constraintBottom_toBottomOf="@id/floorHintTv" - app:layout_constraintEnd_toEndOf="@id/contentTv" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="@id/floorHintTv" tools:text="999" />