Populate the topology pane with the topology as returned from DisplayManager. This adds padding but not the proper rounded corners or highlighting for the blocks. That will come later, probably after feature complete while still in dogfood. Test: add and remove overlays while external display fragment is shown - verify pane is refreshed Test: add two overlay displays, verify two blocks appear in pane with system wallpaper Test: with no freeform window displays, verify a "not enabled" message appears in pane with no display blocks Test: DisplayTopologyPreferenceTest Flag: com.android.settings.flags.display_topology_pane_in_display_list Bug: b/352648432 Change-Id: Ibb35af53c24d6feb1d763e4b2bf2ec9fee2ae24d
42 lines
1.7 KiB
XML
42 lines
1.7 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:id="@+id/display_topology_pane_holder"
|
|
android:importantForAccessibility="no"
|
|
android:layout_height="wrap_content"
|
|
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_pane_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
<TextView
|
|
android:id="@+id/topology_hint"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:paddingBottom="10dp"
|
|
android:paddingTop="10dp" />
|
|
</FrameLayout>
|