WifiDppQrCodeGeneratorFragment 1. Remove footer in landscape QR code scanner fragment 2. Move header icon from activity layout file to header layout file 3. Fine tune header layout file 4. set icons for the 2 fragments Bug: 118797380 Bug: 118794858 Test: atest WifiDppConfiguratorActivityTest atest WifiDppQrCodeScannerFragmentTest atest WifiDppQrCodeGeneratorFragmentTest atest RunSettingsRoboTests Change-Id: I7e547d7c29dd947a890e902e61b8244fec399354
59 lines
2.0 KiB
XML
59 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2018 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/EntityHeader"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerHorizontal="true"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/header_icon"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:scaleType="fitCenter"/>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.EntityHeaderTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:textAlignment="center"
|
|
android:layout_marginTop="8dp"
|
|
android:paddingStart="32dp"
|
|
android:paddingEnd="32dp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/description"
|
|
style="@style/TextAppearance.EntityHeaderSummary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="false"
|
|
android:gravity="center_horizontal"
|
|
android:textAlignment="center"
|
|
android:layout_marginTop="2dp"
|
|
android:paddingStart="32dp"
|
|
android:paddingEnd="32dp"/>
|
|
|
|
</LinearLayout>
|