mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-16 23:33:10 -06:00
257 lines
11 KiB
XML
257 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
android:gravity="center"
|
||
android:background="#0B1220"
|
||
android:keepScreenOn="true">
|
||
|
||
<ScrollView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:fillViewport="true">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
android:gravity="center_horizontal"
|
||
android:paddingHorizontal="28dp"
|
||
android:paddingVertical="24dp">
|
||
|
||
<ImageView
|
||
android:layout_width="44dp"
|
||
android:layout_height="44dp"
|
||
android:src="@drawable/ic_remote_view"
|
||
android:layout_marginBottom="10dp"
|
||
android:contentDescription="Remote control" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="One last step: enable remote control"
|
||
android:textColor="#F1F5F9"
|
||
android:textSize="20sp"
|
||
android:textStyle="bold"
|
||
android:gravity="center" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="6dp"
|
||
android:maxWidth="560dp"
|
||
android:gravity="center"
|
||
android:lineSpacingMultiplier="1.25"
|
||
android:text="This managed panel needs ScreenTinker’s accessibility service so you can view and control it remotely. Android requires this one switch to be turned on by hand — it’s the only step we can’t do for you."
|
||
android:textColor="#94A3B8"
|
||
android:textSize="13sp" />
|
||
|
||
<TextView
|
||
android:id="@+id/a11yStatusPill"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="16dp"
|
||
android:paddingHorizontal="16dp"
|
||
android:paddingVertical="8dp"
|
||
android:background="@drawable/pill_bg"
|
||
android:text="● Accessibility service: OFF"
|
||
android:textColor="#EF4444"
|
||
android:textSize="13sp"
|
||
android:textStyle="bold" />
|
||
|
||
<!-- Step 1 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="22dp"
|
||
android:maxWidth="620dp"
|
||
android:orientation="horizontal"
|
||
android:background="@drawable/card_bg"
|
||
android:padding="16dp"
|
||
android:gravity="center_vertical">
|
||
|
||
<TextView
|
||
android:layout_width="34dp"
|
||
android:layout_height="34dp"
|
||
android:background="@drawable/badge_circle"
|
||
android:gravity="center"
|
||
android:text="1"
|
||
android:textColor="#93C5FD"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold" />
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:layout_marginHorizontal="14dp"
|
||
android:orientation="vertical">
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="Allow restricted settings"
|
||
android:textColor="#F1F5F9"
|
||
android:textSize="15sp"
|
||
android:textStyle="bold" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="2dp"
|
||
android:lineSpacingMultiplier="1.2"
|
||
android:text="On the app’s info page, tap the ⋮ menu (top-right) → “Allow restricted settings”."
|
||
android:textColor="#94A3B8"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<!-- visual cue: the ⋮ menu they need to tap -->
|
||
<FrameLayout
|
||
android:layout_width="46dp"
|
||
android:layout_height="46dp"
|
||
android:layout_marginEnd="12dp"
|
||
android:background="@drawable/pill_bg">
|
||
<ImageView
|
||
android:layout_width="26dp"
|
||
android:layout_height="26dp"
|
||
android:layout_gravity="center"
|
||
android:src="@drawable/ic_dots_vertical"
|
||
android:contentDescription="Menu" />
|
||
</FrameLayout>
|
||
|
||
<Button
|
||
android:id="@+id/openAppInfoBtn"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:minWidth="0dp"
|
||
android:minHeight="0dp"
|
||
android:paddingHorizontal="16dp"
|
||
android:paddingVertical="10dp"
|
||
android:background="@drawable/button_primary"
|
||
android:text="App info"
|
||
android:textColor="#FFFFFF"
|
||
android:textSize="13sp"
|
||
android:textAllCaps="false" />
|
||
</LinearLayout>
|
||
|
||
<!-- Step 2 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="12dp"
|
||
android:maxWidth="620dp"
|
||
android:orientation="horizontal"
|
||
android:background="@drawable/card_bg"
|
||
android:padding="16dp"
|
||
android:gravity="center_vertical">
|
||
|
||
<TextView
|
||
android:layout_width="34dp"
|
||
android:layout_height="34dp"
|
||
android:background="@drawable/badge_circle"
|
||
android:gravity="center"
|
||
android:text="2"
|
||
android:textColor="#93C5FD"
|
||
android:textSize="16sp"
|
||
android:textStyle="bold" />
|
||
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:layout_marginHorizontal="14dp"
|
||
android:orientation="vertical">
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:text="Turn ScreenTinker on"
|
||
android:textColor="#F1F5F9"
|
||
android:textSize="15sp"
|
||
android:textStyle="bold" />
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="2dp"
|
||
android:lineSpacingMultiplier="1.2"
|
||
android:text="In Accessibility, pick ScreenTinker, flip the switch On, and confirm Allow."
|
||
android:textColor="#94A3B8"
|
||
android:textSize="12sp" />
|
||
</LinearLayout>
|
||
|
||
<!-- visual cue: a toggle in the ON position (non-interactive) -->
|
||
<Switch
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="12dp"
|
||
android:checked="true"
|
||
android:clickable="false"
|
||
android:focusable="false"
|
||
android:thumbTint="#FFFFFF"
|
||
android:trackTint="#e65c00" />
|
||
|
||
<Button
|
||
android:id="@+id/openA11yBtn"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:minWidth="0dp"
|
||
android:minHeight="0dp"
|
||
android:paddingHorizontal="16dp"
|
||
android:paddingVertical="10dp"
|
||
android:background="@drawable/button_primary"
|
||
android:text="Accessibility"
|
||
android:textColor="#FFFFFF"
|
||
android:textSize="13sp"
|
||
android:textAllCaps="false" />
|
||
</LinearLayout>
|
||
|
||
<!-- footer actions -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="22dp"
|
||
android:maxWidth="620dp"
|
||
android:orientation="horizontal"
|
||
android:gravity="center_vertical">
|
||
|
||
<TextView
|
||
android:id="@+id/skipText"
|
||
android:layout_width="0dp"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="1"
|
||
android:text="Skip for now"
|
||
android:textColor="#64748B"
|
||
android:textSize="13sp"
|
||
android:paddingVertical="10dp" />
|
||
|
||
<Button
|
||
android:id="@+id/continueBtn"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:minWidth="0dp"
|
||
android:minHeight="0dp"
|
||
android:paddingHorizontal="24dp"
|
||
android:paddingVertical="12dp"
|
||
android:background="@drawable/button_primary"
|
||
android:text="Continue"
|
||
android:textColor="#FFFFFF"
|
||
android:textSize="14sp"
|
||
android:textStyle="bold"
|
||
android:textAllCaps="false" />
|
||
</LinearLayout>
|
||
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="14dp"
|
||
android:maxWidth="620dp"
|
||
android:gravity="center"
|
||
android:text="Playback works without this — it only enables remote view & control."
|
||
android:textColor="#475569"
|
||
android:textSize="11sp" />
|
||
</LinearLayout>
|
||
</ScrollView>
|
||
</LinearLayout>
|