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:
parent
569cfeac09
commit
e1a2a45810
@ -10,7 +10,7 @@ plugins {
|
||||
// 避免不同尺寸機台間版本號產生衝突。
|
||||
// =========================================================================
|
||||
def verMinor = 2
|
||||
def verPatch = 41
|
||||
def verPatch = 42
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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()) {
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user