1、举报提交信息UI修改

This commit is contained in:
老皮 2024-10-09 16:34:50 +08:00
parent 800e1382a4
commit c1ef54e7b1
5 changed files with 189 additions and 164 deletions

View File

@ -618,7 +618,7 @@
<string name="video_my_video">My video</string>
<string name="video_report_tip_1">Choose a reason to report</string>
<string name="video_report_tip_2">More content should be described in the description box (required)</string>
<string name="video_report_submit">Submission</string>
<string name="video_report_submit">submit</string>
<string name="video_report_tip_3">Please select the reason for reporting</string>
<string name="video_report_tip_4">Report success</string>
<string name="video_report_tip_5">Please fill in the report</string>

View File

@ -117,6 +117,13 @@ public class SystemMessageNewAdapter extends RefreshAdapter<SystemMessageBean> {
img_content.setVisibility(View.GONE);
bannerImgLayout.setVisibility(View.GONE);
}
if (bean.getIs_report() == 1) {
if (bean.getIs_replenishment() != 1) {
layoutMore.setVisibility(View.VISIBLE);
}
}
itemLayout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

View File

@ -32,181 +32,199 @@
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:text="@string/report_second_2"
android:textColor="#ff333333"
android:layout_marginTop="30dp"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/titleView" />
android:scrollbars="none"
app:layout_constraintTop_toBottomOf="@id/titleView"
>
<TextView
android:id="@+id/textView8"
android:layout_width="8dp"
android:layout_height="15dp"
android:text="*"
android:textColor="#ffff870f"
android:textSize="15sp"
app:layout_constraintBottom_toBottomOf="@+id/textView5"
app:layout_constraintStart_toEndOf="@+id/textView5"
app:layout_constraintTop_toTopOf="@+id/textView5" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="11dp"
android:layout_marginEnd="15dp"
app:cardBackgroundColor="#F7F7F7"
app:cardCornerRadius="10dp"
app:cardElevation="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/textView5"
app:layout_constraintTop_toBottomOf="@+id/textView5">
<TextView
android:id="@+id/info_textView"
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:text="您舉報的用戶【用戶暱稱】,我們已對其進行重點觀察,並進一步判定,若發現違規將立刻處理,感謝您的監督~"
android:textColor="#ff777777"
android:textSize="11sp" />
android:layout_height="wrap_content">
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:text="@string/report_second_2"
android:textColor="#ff333333"
android:layout_marginTop="30dp"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView8"
android:layout_width="8dp"
android:layout_height="15dp"
android:text="*"
android:textColor="#ffff870f"
android:textSize="15sp"
app:layout_constraintBottom_toBottomOf="@+id/textView5"
app:layout_constraintStart_toEndOf="@+id/textView5"
app:layout_constraintTop_toTopOf="@+id/textView5" />
<androidx.cardview.widget.CardView
android:id="@+id/cardView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="11dp"
android:layout_marginEnd="15dp"
app:cardBackgroundColor="#F7F7F7"
app:cardCornerRadius="10dp"
app:cardElevation="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/textView5"
app:layout_constraintTop_toBottomOf="@+id/textView5">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/report_second_3"
android:textColor="#ff333333"
android:textSize="15sp"
android:id="@+id/textView10"
android:layout_marginTop="19dp"
app:layout_constraintStart_toStartOf="@+id/textView5"
app:layout_constraintTop_toBottomOf="@+id/cardView" />
<TextView
android:id="@+id/info_textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:text="您舉報的用戶【用戶暱稱】,我們已對其進行重點觀察,並進一步判定,若發現違規將立刻處理,感謝您的監督~"
android:textColor="#ff777777"
android:textSize="11sp" />
</androidx.cardview.widget.CardView>
<ImageView
android:layout_width="98dp"
android:layout_height="98dp"
android:id="@+id/image_1"
app:layout_constraintStart_toStartOf="@id/textView5"
app:layout_constraintEnd_toStartOf="@id/image_2"
app:layout_constraintTop_toBottomOf="@id/textView10"
android:src="@mipmap/upload_image"
android:layout_marginTop="15dp"
/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/cancel_upload"
app:layout_constraintCircle="@+id/image_1"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="60dp"
android:id="@+id/cancel_1"
android:visibility="gone"
tools:ignore="MissingConstraints" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/report_second_3"
android:textColor="#ff333333"
android:textSize="15sp"
android:id="@+id/textView10"
android:layout_marginTop="19dp"
app:layout_constraintStart_toStartOf="@+id/textView5"
app:layout_constraintTop_toBottomOf="@+id/cardView" />
<ImageView
android:layout_width="98dp"
android:layout_height="98dp"
android:id="@+id/image_2"
app:layout_constraintStart_toEndOf="@id/image_1"
app:layout_constraintEnd_toStartOf="@id/image_3"
app:layout_constraintTop_toTopOf="@id/image_1"
android:src="@mipmap/upload_image"
/>
<ImageView
android:layout_width="98dp"
android:layout_height="98dp"
android:id="@+id/image_1"
app:layout_constraintStart_toStartOf="@id/textView5"
app:layout_constraintEnd_toStartOf="@id/image_2"
app:layout_constraintTop_toBottomOf="@id/textView10"
android:src="@mipmap/upload_image"
android:layout_marginTop="15dp"
/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/cancel_upload"
app:layout_constraintCircle="@+id/image_2"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="60dp"
android:id="@+id/cancel_2"
android:visibility="gone"
tools:ignore="MissingConstraints" />
<ImageView
android:layout_width="98dp"
android:layout_height="98dp"
android:id="@+id/image_3"
app:layout_constraintStart_toEndOf="@id/image_2"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="15dp"
app:layout_constraintTop_toTopOf="@id/image_1"
android:src="@mipmap/upload_image"
/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/cancel_upload"
app:layout_constraintCircle="@+id/image_1"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="60dp"
android:id="@+id/cancel_1"
android:visibility="gone"
tools:ignore="MissingConstraints" />
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/cancel_upload"
app:layout_constraintCircle="@+id/image_3"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="60dp"
android:id="@+id/cancel_3"
android:visibility="gone"
tools:ignore="MissingConstraints" />
<ImageView
android:layout_width="98dp"
android:layout_height="98dp"
android:id="@+id/image_2"
app:layout_constraintStart_toEndOf="@id/image_1"
app:layout_constraintEnd_toStartOf="@id/image_3"
app:layout_constraintTop_toTopOf="@id/image_1"
android:src="@mipmap/upload_image"
/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/cancel_upload"
app:layout_constraintCircle="@+id/image_2"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="60dp"
android:id="@+id/cancel_2"
android:visibility="gone"
tools:ignore="MissingConstraints" />
<ImageView
android:layout_width="98dp"
android:layout_height="98dp"
android:id="@+id/image_3"
app:layout_constraintStart_toEndOf="@id/image_2"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="15dp"
app:layout_constraintTop_toTopOf="@id/image_1"
android:src="@mipmap/upload_image"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/report_second_4"
android:textColor="#333333"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="@id/textView5"
app:layout_constraintTop_toBottomOf="@id/image_1"
android:layout_marginTop="20dp"
android:id="@+id/textView6"
/>
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@mipmap/cancel_upload"
app:layout_constraintCircle="@+id/image_3"
app:layout_constraintCircleAngle="45"
app:layout_constraintCircleRadius="60dp"
android:id="@+id/cancel_3"
android:visibility="gone"
tools:ignore="MissingConstraints" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/report_second_4"
android:textColor="#333333"
android:textSize="15sp"
app:layout_constraintStart_toStartOf="@id/textView5"
app:layout_constraintTop_toBottomOf="@id/image_1"
android:layout_marginTop="20dp"
android:id="@+id/textView6"
/>
<EditText
android:id="@+id/edit"
android:layout_width="0dp"
android:layout_height="127dp"
android:layout_marginTop="15dp"
android:background="@drawable/edit_background_f7"
android:gravity="top"
android:hint="@string/report_second_5"
android:maxLength="200"
android:padding="10dp"
android:textColor="@color/textColor"
android:textSize="11sp"
app:layout_constraintEnd_toEndOf="@+id/cardView"
app:layout_constraintStart_toStartOf="@+id/textView6"
app:layout_constraintTop_toBottomOf="@id/textView6" />
<TextView
android:id="@+id/btn_report"
android:layout_width="150dp"
android:layout_height="48dp"
android:background="@drawable/border_hui"
android:gravity="center"
android:text="@string/video_report_submit"
android:textColor="@color/white"
android:textSize="16sp"
android:clickable="false"
android:layout_marginTop="80dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/edit"
app:layout_constraintTop_toBottomOf="@+id/edit" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
<EditText
android:id="@+id/edit"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:background="@drawable/edit_background_f7"
android:gravity="top"
android:hint="@string/report_second_5"
android:maxLength="200"
android:minHeight="60dp"
android:padding="10dp"
android:textColor="@color/textColor"
android:textSize="11sp"
app:layout_constraintEnd_toEndOf="@+id/cardView"
app:layout_constraintStart_toStartOf="@+id/textView6"
app:layout_constraintTop_toBottomOf="@id/textView6" />
<TextView
android:id="@+id/btn_report"
android:layout_width="150dp"
android:layout_height="48dp"
android:background="@drawable/border_hui"
android:gravity="center"
android:text="@string/video_report_submit"
android:textColor="@color/white"
android:textSize="16sp"
android:clickable="false"
android:layout_marginTop="50dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/edit"
app:layout_constraintTop_toBottomOf="@+id/edit" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -151,7 +151,7 @@
<string name="report_second_3">上傳圖片</string>
<string name="report_second_4">舉報內容補充</string>
<string name="report_second_5">若您有其它補充信息,請在說明框中描述~</string>
<string name="report_second_6">已收到您的補充信息,我們正在加急處理中</string>
<string name="report_second_6">已收到您的補充信息</string>
<string name="report_second_7">提交成功</string>
<string name="live_room_push_to_new_task">點擊\n前往</string>

View File

@ -154,7 +154,7 @@
<string name="report_second_3">Upload pictures</string>
<string name="report_second_4">Report content supplement</string>
<string name="report_second_5">If you have additional information, please describe it in the description box</string>
<string name="report_second_6">Your supplementary information has been received. We are handling it urgently</string>
<string name="report_second_6">Your supplementary information has been received</string>
<string name="report_second_7">Submitted successfully</string>
<string name="live_room_push_to_new_task">Click \nto go</string>