pdlivexp/live/src/main/res/layout/view_live_prank_turntable.xml

117 lines
4.8 KiB
XML
Raw Normal View History

2022-12-08 14:42:33 +08:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
2022-12-10 17:30:11 +08:00
android:layout_height="wrap_content"
2022-12-08 14:42:33 +08:00
android:orientation="vertical">
2022-12-10 17:30:11 +08:00
<LinearLayout
android:id="@+id/turntable_layout"
2022-12-08 14:42:33 +08:00
android:layout_width="match_parent"
2022-12-10 17:30:11 +08:00
android:layout_height="wrap_content"
2023-10-09 16:27:54 +08:00
android:layout_marginTop="10dp"
android:orientation="vertical"
android:visibility="visible">
2022-12-08 14:42:33 +08:00
2022-12-10 17:30:11 +08:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/turntable_config_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/switch1_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
2023-10-09 16:27:54 +08:00
android:text="@string/prank_switch"
2022-12-10 17:30:11 +08:00
android:textColor="#A992FF"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/switch1_desc_text"
2023-10-12 14:26:10 +08:00
android:layout_width="300dp"
2022-12-10 17:30:11 +08:00
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
2023-10-09 16:27:54 +08:00
android:ellipsize="end"
android:singleLine="true"
android:text="@string/see_the_contents_of"
2022-12-10 17:30:11 +08:00
android:textColor="#B3B3B3"
2022-12-12 13:45:41 +08:00
android:textSize="10sp"
2022-12-10 17:30:11 +08:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/switch1_title_text" />
2022-12-08 14:42:33 +08:00
2022-12-10 17:30:11 +08:00
<ImageView
android:id="@+id/switch1_btn"
android:layout_width="47dp"
android:layout_height="23dp"
android:layout_marginEnd="12dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@mipmap/special_icon_on" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
2022-12-08 14:42:33 +08:00
android:layout_height="wrap_content"
2022-12-10 17:30:11 +08:00
android:layout_marginTop="20dp">
<TextView
android:id="@+id/switch2_title_text"
2023-10-12 14:26:10 +08:00
android:layout_width="270dp"
2022-12-10 17:30:11 +08:00
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
2023-10-09 16:27:54 +08:00
android:ellipsize="end"
android:singleLine="true"
android:text="@string/diamonds_every_time"
2022-12-10 17:30:11 +08:00
android:textColor="#A992FF"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/switch2_desc_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
2023-10-09 16:27:54 +08:00
android:text="@string/diamonds_every_time_requirement_of"
2022-12-10 17:30:11 +08:00
android:textColor="#B3B3B3"
2022-12-12 13:45:41 +08:00
android:textSize="10sp"
2022-12-10 17:30:11 +08:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/switch2_title_text" />
<TextView
android:id="@+id/switch2_btn"
android:layout_width="96dp"
android:layout_height="26dp"
android:layout_marginEnd="12dp"
android:background="@drawable/bg_prank_coin"
android:gravity="center"
android:text="1,000"
android:textColor="#FFFFFF"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/prank_config"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp" />
2022-12-12 13:45:41 +08:00
<TextView
android:id="@+id/gift_prank_not_date"
android:layout_width="match_parent"
android:layout_height="250dp"
android:gravity="center"
2023-10-12 14:26:10 +08:00
android:text="@string/prank_content_yet_hint"
2022-12-12 13:45:41 +08:00
android:textColor="#BFBFBF"
2023-10-09 16:27:54 +08:00
android:visibility="gone" />
2022-12-10 17:30:11 +08:00
</LinearLayout>