修复随机PK文案在英文模式下过长问题

This commit is contained in:
zlzw 2023-07-21 09:45:11 +08:00
parent 3376a57f9d
commit e32d450ca1
2 changed files with 68 additions and 61 deletions

View File

@ -401,7 +401,7 @@ public class RandomPkManager {
* 清空状态下播时调用 * 清空状态下播时调用
*/ */
public void release() { public void release() {
status = PK_STATUS_REQUEST; status = PK_STATUS_DEFAULT;
if (task != null) { if (task != null) {
task.cancel(); task.cancel();
} }

View File

@ -6,17 +6,22 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="visible"> android:visibility="visible">
<LinearLayout <androidx.core.widget.NestedScrollView
android:id="@+id/linearLayout" android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="230dp"
android:fillViewport="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:layout_marginEnd="10dp" android:layout_marginEnd="10dp"
android:background="@drawable/background_7792d0" android:background="@drawable/background_7792d0"
android:orientation="vertical" android:orientation="vertical">
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -58,6 +63,7 @@
android:text="@string/random_pk_info_desc_3" android:text="@string/random_pk_info_desc_3"
android:textColor="#F6F7FB" android:textColor="#F6F7FB"
android:textSize="14sp" /> android:textSize="14sp" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -67,6 +73,7 @@
android:textColor="#F6F7FB" android:textColor="#F6F7FB"
android:textSize="16sp" android:textSize="16sp"
android:textStyle="bold" /> android:textStyle="bold" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -78,7 +85,7 @@
android:textColor="#F6F7FB" android:textColor="#F6F7FB"
android:textSize="14sp" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"