Files
Portal-Camera/portal-capability-test/res/layout/controls_fixed.xml
T
2026-09-13 21:12:44 -07:00

132 lines
5.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- Fixed mode: D-pad cross (placement) + vertical zoom stack on the right. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
<!-- Zoom stack -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="28dp"
android:gravity="center_horizontal"
android:orientation="vertical">
<Button
android:id="@+id/fixed_zoom_in"
android:layout_width="64dp"
android:layout_height="48dp"
android:layout_marginBottom="4dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:fontFamily="@font/lucide"
android:gravity="center"
android:includeFontPadding="false"
android:nextFocusDown="@+id/fixed_zoom_out"
android:nextFocusRight="@+id/fixed_center"
android:nextFocusUp="@+id/header_overflow"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="20sp" />
<TextView
android:id="@+id/fixed_zoom_value"
android:layout_width="64dp"
android:layout_height="48dp"
android:layout_marginBottom="4dp"
android:focusable="false"
android:gravity="center"
android:text="1.0×"
android:textColor="@color/pc_text"
android:textSize="15sp"
android:textStyle="bold" />
<Button
android:id="@+id/fixed_zoom_out"
android:layout_width="64dp"
android:layout_height="48dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:fontFamily="@font/lucide"
android:gravity="center"
android:includeFontPadding="false"
android:nextFocusUp="@+id/fixed_zoom_in"
android:nextFocusRight="@+id/fixed_center"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="20sp" />
</LinearLayout>
<!-- Direction cross -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<Button
android:id="@+id/fixed_up"
android:layout_width="56dp"
android:layout_height="48dp"
android:layout_marginBottom="4dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:nextFocusUp="@+id/header_overflow"
android:text="▲"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="16sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<Button
android:id="@+id/fixed_left"
android:layout_width="56dp"
android:layout_height="48dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:nextFocusLeft="@+id/fixed_zoom_in"
android:text="◀"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="16sp" />
<Button
android:id="@+id/fixed_center"
android:layout_width="56dp"
android:layout_height="48dp"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:text="●"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="14sp" />
<Button
android:id="@+id/fixed_right"
android:layout_width="56dp"
android:layout_height="48dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:text="▶"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="16sp" />
</LinearLayout>
<Button
android:id="@+id/fixed_down"
android:layout_width="56dp"
android:layout_height="48dp"
android:background="@drawable/pc_btn_secondary"
android:focusable="true"
android:text="▼"
android:textAllCaps="false"
android:textColor="@color/pc_text"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>