feat(app-ui): A3(異常鎖定/遠端鎖定頁)接後台換膚 — MaintenanceActivity 滿版圖套 UiSkin.apply("A3")

activity_maintenance.xml 加 lockImage ImageView(預設 a3_errorlock_aat_01);verPatch 42

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
terrylee 2026-07-15 13:58:13 +08:00
parent 569cfeac09
commit e1a2a45810
3 changed files with 17 additions and 1 deletions

View File

@ -10,7 +10,7 @@ plugins {
//
// =========================================================================
def verMinor = 2
def verPatch = 41
def verPatch = 42

View File

@ -58,6 +58,9 @@ public class MaintenanceActivity extends AppCompatActivityAbstract {
setContentView(R.layout.activity_maintenance);
// A3異常鎖定/遠端鎖定頁套用後台UI元素設定下發的滿版圖未設定則保留預設 a3_errorlock_aat_01
com.unibuy.smartdevice.ui.tools.UiSkin.apply("A3", (android.widget.ImageView) findViewById(R.id.lockImage));
View backdoorView = findViewById(R.id.viewBackdoor);
backdoorView.setOnTouchListener((v, event) -> {
switch (event.getAction()) {

View File

@ -5,6 +5,19 @@
android:layout_height="match_parent"
android:background="@drawable/a3_errorlock_aat_01">
<!-- A3異常鎖定滿版底圖預設 a3_errorlock_aat_01後台「UI元素設定」綁定 A3 後由 UiSkin 覆蓋 -->
<ImageView
android:id="@+id/lockImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/a3_errorlock_aat_01"
android:contentDescription="Lock Screen"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<!-- 隱藏後門:放置一個透明的 View 在畫面中央,用來監聽長按 -->
<View
android:id="@+id/viewBackdoor"