Set description via getGlifLayout().setDescriptionText instead of writing it in layout to display it properly in two columns when in landscape. No visual change in portrait. Change-Id: I7465a7fbc5819d429bb886a5582fb1f1d4db9a47
119 lines
5.1 KiB
XML
119 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2013 The CyanogenMod Project
|
|
2017-2022 The LineageOS 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.
|
|
-->
|
|
<com.google.android.setupdesign.GlifLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/setup_wizard_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
style="@style/SudContentFrame">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/page"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Spinner
|
|
android:id="@+id/timezone_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:saveEnabled="false"/>
|
|
|
|
<TwoLineListItem
|
|
android:id="@+id/date_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
android:mode="twoLine"
|
|
android:clickable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/date_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_current_date"
|
|
style="@style/SpinnerItem" />
|
|
|
|
<TextView
|
|
android:id="@+id/date_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/date_title"
|
|
android:layout_alignStart="@id/date_title"
|
|
android:fontFamily="sans-serif-medium"
|
|
style="@style/SpinnerItem" />
|
|
</TwoLineListItem>
|
|
|
|
<TwoLineListItem
|
|
android:id="@+id/time_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
android:mode="twoLine"
|
|
android:clickable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/time_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/setup_current_time"
|
|
style="@style/SpinnerItem" />
|
|
|
|
<TextView
|
|
android:id="@+id/time_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/time_title"
|
|
android:layout_alignStart="@id/time_title"
|
|
android:fontFamily="sans-serif-medium"
|
|
style="@style/SpinnerItem" />
|
|
</TwoLineListItem>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</FrameLayout>
|
|
|
|
<org.lineageos.setupwizard.NavigationLayout
|
|
android:id="@+id/navigation_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
</com.google.android.setupdesign.GlifLayout>
|