feat: SettingsLib验证通过-使用App module启用
This commit is contained in:
67
CarSettings/res/layout/wifi_tether_qr_code_preference.xml
Normal file
67
CarSettings/res/layout/wifi_tether_qr_code_preference.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2023 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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:layout_marginTop="@dimen/qc_code_preference_margin"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hotspot_qr_code_instruction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitCenter"
|
||||
android:antialias="true"
|
||||
android:layout_marginTop="@dimen/qc_code_preference_margin"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
app:cardElevation="@dimen/card_view_elevation"
|
||||
app:cardCornerRadius="@dimen/rounded_corner_radius">
|
||||
<ImageView
|
||||
android:id="@+id/hotspot_qr_code"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hotspot_qr_code_password"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/qc_code_preference_margin"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/divider_preference_height"
|
||||
android:layout_marginBottom="@dimen/divider_preference_margin_top"
|
||||
android:layout_marginTop="@dimen/divider_preference_margin_bottom"
|
||||
style="@style/Preference.CarUi.Divider"/>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user