1. WifiDppQrCodeBaseFragment only declairs common UI components between fragments. 2. Initiate UI components in onViewCreated of each View. 3. Remove the only one usage of @NonNull since it should be used consistently throughout the class if we want to use it. 4. Use android.R.id for icon/title/summary Bug: 120645817 Test: atest WifiDppConfiguratorActivityTest atest WifiDppEnrolleeActivityTest atest WifiDppQrCodeGeneratorFragmentTest atest WifiDppQrCodeScannerFragmentTest Change-Id: I54f99a3072533cec46f0e47753ee0331fecf2ada
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="@android:id/icon"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:scaleType="fitCenter"/>
|
|
|
|
<TextView
|
|
android:id="@android: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="@android:id/summary"
|
|
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>
|