Show an empty topology pane in the extended displays list. Even show when no external display is connected. This will be tweaked in a follow-up CL to include the built-in display in the pane and the displays list. This fixes an issue where the displays list is not shown when *no* external displays are connected, which was not the intent of the flag. The previous flag CL ag/30358161 only respected the flag when 1 external display was connected. Based on mocks at go/al-mm-figma Bug: b/352650922 Test: reboot with zero displays attached and verify display list and pane are shown Test: on al-13 device, make the activity fullscreen and verify the margins on left and right of pane are larger Flag: com.android.settings.flags.display_topology_pane_in_display_list Change-Id: If39fefe943a26c817fa6f636f21eb8aaa080adde
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2024 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:importantForAccessibility="no"
|
|
android:layout_height="160dp"
|
|
android:layout_width="match_parent"
|
|
android:paddingHorizontal="@dimen/display_topology_pane_margin"
|
|
android:orientation="horizontal">
|
|
<ImageView
|
|
android:importantForAccessibility="no"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:src="@drawable/display_topology_background"/>
|
|
<FrameLayout
|
|
android:id="@+id/display_topology_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"/>
|
|
<TextView
|
|
android:id="@+id/topology_hint"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:paddingTop="10dp"
|
|
android:text="@string/external_display_topology_hint"/>
|
|
</FrameLayout>
|