1. Wrap the support_disclaimer_content by scrollview. 2. Change the layout in support_escalation_options using layout_weight. 3. Add styles in layout-sw300dp and layout-sw400dp The target scope is between 300dp->400dp, so I add the default style in sw400dp and changed style in sw300dp to cover it. Bug: 31399419 Test: Visual Change-Id: I117acb0c5b992bea2cded6cd48749c4ed7b04488
90 lines
3.6 KiB
XML
90 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2016 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.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
style="@style/SupportEscalationCard"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:id="@+id/tile_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAppearance="@style/TextAppearance.SupportTitle"/>
|
|
<TextView
|
|
android:id="@+id/tile_summary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="30dp"
|
|
android:textAppearance="@style/TextAppearance.Small"
|
|
android:textColor="?android:attr/textColorSecondary"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
<Button
|
|
android:id="@android:id/text1"
|
|
style="@style/SupportPrimaryButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"/>
|
|
<TextView
|
|
android:id="@+id/summary1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="14dp"
|
|
android:textAppearance="@style/TextAppearance.Small"
|
|
android:textColor="?android:attr/textColorSecondary"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
<Button
|
|
android:id="@android:id/text2"
|
|
style="@style/SupportPrimaryButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"/>
|
|
<TextView
|
|
android:id="@+id/summary2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="14dp"
|
|
android:textAppearance="@style/TextAppearance.Small"
|
|
android:textColor="?android:attr/textColorSecondary"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|