1. Change title to multi-lines display 2. Add "SingleSpecifiedSSID" mode, will have connect button 3. Don't pop error dialog, if there is connection failure. Let user retry. 4. Hide progress icon if list item exists Bug: 128586511 Test: atest NetworkRequestDialogFragmentTest Change-Id: Icc560e4882fbcd941574e44690a27d5082a7c4c7
46 lines
1.7 KiB
XML
46 lines
1.7 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingEnd="?android:attr/dialogPreferredPadding"
|
|
android:orientation="horizontal"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall">
|
|
|
|
<TextView
|
|
android:id="@+id/network_request_title_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="24dp"
|
|
android:paddingTop="18dp"
|
|
android:layout_weight="1"
|
|
android:textSize="18sp"
|
|
android:gravity="center_vertical"
|
|
style="@style/info_label"/>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/network_request_title_progress"
|
|
style="?android:attr/progressBarStyleSmallTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="16dip"
|
|
android:minWidth="32dp"
|
|
android:text="@string/progress_scanning"/>
|
|
</LinearLayout>
|