summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-01-14 15:37:36 -0800
committerMaurice Lam <yukl@google.com>2015-01-15 14:33:31 -0800
commit859dcab128d804ec50f84779cdbf95f1505bae0e (patch)
treedc0516c7008bfc402d66b83506feaa5443462e2d /res/layout
parent2f08914e320ad142a24dd60edd17fbb93b504458 (diff)
downloadpackages_apps_Settings-859dcab128d804ec50f84779cdbf95f1505bae0e.zip
packages_apps_Settings-859dcab128d804ec50f84779cdbf95f1505bae0e.tar.gz
packages_apps_Settings-859dcab128d804ec50f84779cdbf95f1505bae0e.tar.bz2
Remove grey Wi-Fi icon from Setup Wizard
This removes the grey Wi-Fi icon from the empty-view in the Wi-Fi list of Setup Wizard. Also updated the style so it looks like the description text in other setup screens. Also fixed the view recycling by not calling getRootAdapter in onActivityCreated, since that will cause the Preference framework to not cache the AccessPoint preference. Bug: 17575719 Bug: 16518752 Change-Id: I06cbc88db1c04b29a9ce8221596265effc39b90b
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/setup_wifi_empty.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/res/layout/setup_wifi_empty.xml b/res/layout/setup_wifi_empty.xml
new file mode 100644
index 0000000..52864f9
--- /dev/null
+++ b/res/layout/setup_wifi_empty.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="@dimen/setup_wizard_margin_top"
+ android:paddingStart="@dimen/setup_wizard_margin_sides"
+ android:paddingEnd="@dimen/setup_wizard_margin_sides"
+ android:textAppearance="@style/TextAppearance.SetupWizardDescription" />