[Settings] Code refactor - reuseable layout extration
This is a change to extract EID layout for easily moving it to somewhere else. Bug: 260540995 Test: local Change-Id: Ic7eb257d8d6b30564bc1a63c9b35676784c13d81
This commit is contained in:
@@ -162,18 +162,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/status_esim_id"/>
|
android:text="@string/status_esim_id"/>
|
||||||
<TextView
|
|
||||||
style="@style/device_info_dialog_value"
|
<include layout="@xml/esim_eid_and_qrcode" />
|
||||||
android:id="@+id/esim_id_value"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textIsSelectable="true"
|
|
||||||
android:text="@string/device_info_not_available"/>
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/esim_id_qrcode"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
tools:ignore="ContentDescription" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
style="@style/device_info_dialog_label"
|
style="@style/device_info_dialog_label"
|
||||||
|
33
res/xml/esim_eid_and_qrcode.xml
Normal file
33
res/xml/esim_eid_and_qrcode.xml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2022 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
style="@style/device_info_dialog_value"
|
||||||
|
android:id="@+id/esim_id_value"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textIsSelectable="true"
|
||||||
|
android:text="@string/device_info_not_available"/>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/esim_id_qrcode"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
tools:ignore="ContentDescription" />
|
||||||
|
|
||||||
|
</merge>
|
Reference in New Issue
Block a user