2026-02-04 11:27:31 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<FrameLayout
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@android:color/black">
|
|
|
|
|
|
2026-02-04 19:46:29 +08:00
|
|
|
<!-- 双 ImageView 用于淡入淡出切换 -->
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/ivSlideshowBack"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
android:contentDescription="幻灯片图片背景" />
|
|
|
|
|
|
2026-02-04 11:27:31 +08:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/ivSlideshow"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:scaleType="fitCenter"
|
2026-02-04 11:27:31 +08:00
|
|
|
android:contentDescription="幻灯片图片" />
|
|
|
|
|
|
|
|
|
|
<!-- 控制面板 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/controlPanel"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:background="#CC000000"
|
|
|
|
|
android:padding="24dp"
|
|
|
|
|
android:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<!-- 进度显示 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvProgress"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="1 / 20"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:layout_marginBottom="16dp" />
|
|
|
|
|
|
|
|
|
|
<!-- 间隔滑块 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center_vertical"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_marginBottom="12dp">
|
2026-02-04 11:27:31 +08:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="间隔:"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:layout_marginEnd="8dp" />
|
|
|
|
|
|
|
|
|
|
<SeekBar
|
|
|
|
|
android:id="@+id/seekBarInterval"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:max="12"
|
|
|
|
|
android:progress="2" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvIntervalLabel"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="5 秒"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:minWidth="48dp"
|
|
|
|
|
android:gravity="end" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 控制按钮 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
|
|
<!-- 上一张 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnPrevious"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:icon="@android:drawable/ic_media_previous"
|
2026-02-04 19:46:29 +08:00
|
|
|
app:iconSize="28dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:iconTint="@android:color/white"
|
|
|
|
|
app:backgroundTint="#40FFFFFF"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_marginEnd="4dp" />
|
2026-02-04 11:27:31 +08:00
|
|
|
|
|
|
|
|
<!-- 播放/暂停 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnPlayPause"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_width="56dp"
|
|
|
|
|
android:layout_height="56dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:icon="@android:drawable/ic_media_pause"
|
2026-02-04 19:46:29 +08:00
|
|
|
app:iconSize="32dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:iconTint="@android:color/white"
|
|
|
|
|
app:backgroundTint="#60FFFFFF"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_marginHorizontal="4dp" />
|
2026-02-04 11:27:31 +08:00
|
|
|
|
|
|
|
|
<!-- 下一张 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnNext"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:icon="@android:drawable/ic_media_next"
|
2026-02-04 19:46:29 +08:00
|
|
|
app:iconSize="28dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:iconTint="@android:color/white"
|
|
|
|
|
app:backgroundTint="#40FFFFFF"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_marginStart="4dp" />
|
|
|
|
|
|
|
|
|
|
<!-- 分隔 -->
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="1dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:background="#40FFFFFF"
|
|
|
|
|
android:layout_marginHorizontal="12dp" />
|
|
|
|
|
|
|
|
|
|
<!-- 全屏/适应切换 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnScaleMode"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
app:icon="@android:drawable/ic_menu_crop"
|
|
|
|
|
app:iconSize="24dp"
|
|
|
|
|
app:iconTint="@android:color/white"
|
|
|
|
|
app:backgroundTint="#40FFFFFF" />
|
2026-02-04 11:27:31 +08:00
|
|
|
|
|
|
|
|
<!-- 退出 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnExit"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:icon="@android:drawable/ic_menu_close_clear_cancel"
|
2026-02-04 19:46:29 +08:00
|
|
|
app:iconSize="24dp"
|
2026-02-04 11:27:31 +08:00
|
|
|
app:iconTint="@android:color/white"
|
|
|
|
|
app:backgroundTint="#40FF0000"
|
2026-02-04 19:46:29 +08:00
|
|
|
android:layout_marginStart="4dp" />
|
2026-02-04 11:27:31 +08:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 播放结束界面 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/endScreen"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:background="#CC000000"
|
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="播放结束"
|
|
|
|
|
android:textSize="32sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:layout_marginBottom="32dp" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<!-- 重新播放 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnReplay"
|
|
|
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="56dp"
|
|
|
|
|
android:text="重新播放"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
app:backgroundTint="@color/sky_blue_primary"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
app:cornerRadius="28dp"
|
|
|
|
|
android:paddingHorizontal="32dp"
|
|
|
|
|
android:layout_marginEnd="16dp" />
|
|
|
|
|
|
|
|
|
|
<!-- 退出 -->
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnExitEnd"
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="56dp"
|
|
|
|
|
android:text="退出"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
app:strokeColor="@android:color/white"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
app:cornerRadius="28dp"
|
|
|
|
|
android:paddingHorizontal="32dp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|