- get rid of PreferenceActivity as much as we can and use fragments instead - add Drawer widget - add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL) - add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external call thru an Intent Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we would have two Home). Also, verified that: - the WiFi settings still work when called from SetupWizard - when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
258 lines
11 KiB
XML
258 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2006 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.
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<style name="info_label">
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:textAppearance">@style/TextAppearance.info_label</item>
|
|
<item name="android:paddingEnd">4dip</item>
|
|
</style>
|
|
|
|
<style name="info_value">
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:textAppearance">@style/TextAppearance.info_value</item>
|
|
</style>
|
|
|
|
<style name="info_small">
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:textAppearance">@style/TextAppearance.info_small</item>
|
|
</style>
|
|
|
|
<style name="info_layout">
|
|
<item name="android:orientation">vertical</item>
|
|
<item name="android:paddingStart">10dip</item>
|
|
<item name="android:paddingTop">10dip</item>
|
|
<item name="android:paddingEnd">10dip</item>
|
|
<item name="android:paddingBottom">10dip</item>
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">match_parent</item>
|
|
</style>
|
|
|
|
<style name="entry_layout">
|
|
<item name="android:orientation">horizontal</item>
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
</style>
|
|
|
|
<style name="form_value">
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_width">match_parent</item>
|
|
</style>
|
|
|
|
|
|
<style name="TextAppearance" parent="android:TextAppearance">
|
|
</style>
|
|
|
|
<style name="TextAppearance.info_label">
|
|
<item name="android:textSize">14sp</item>
|
|
<item name="android:textStyle">bold</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.info_small">
|
|
<item name="android:textSize">12sp</item>
|
|
<item name="android:textStyle">normal</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.info_value">
|
|
<item name="android:textSize">14sp</item>
|
|
<item name="android:textStyle">normal</item>
|
|
</style>
|
|
|
|
<style name="TallTitleBarTheme" parent="android:Theme.NoTitleBar">
|
|
<item name="android:windowContentOverlay">@null</item>
|
|
</style>
|
|
|
|
<style name="Theme.CreateShortCut" parent="android:Theme.Holo.DialogWhenLarge">
|
|
</style>
|
|
|
|
<style name="PreferenceHeaderPanelSinglePane">
|
|
<item name="android:layout_marginStart">0dp</item>
|
|
<item name="android:layout_marginEnd">0dp</item>
|
|
<item name="android:background">@null</item>
|
|
</style>
|
|
|
|
<style name="PreferencePanelSinglePane" parent="@*android:style/PreferencePanel">
|
|
<item name="android:layout_marginStart">0dp</item>
|
|
<item name="android:layout_marginEnd">0dp</item>
|
|
<item name="android:paddingStart">0dp</item>
|
|
<item name="android:paddingEnd">0dp</item>
|
|
<item name="android:background">@null</item>
|
|
<item name="android:scrollbarStyle">outsideOverlay</item>
|
|
</style>
|
|
|
|
<style name="PreferenceHeaderListSinglePane" parent="@*android:style/PreferenceHeaderList">
|
|
<item name="android:paddingStart">@dimen/settings_side_margin</item>
|
|
<item name="android:paddingEnd">@dimen/settings_side_margin</item>
|
|
<item name="android:paddingTop">0dp</item>
|
|
<item name="android:paddingBottom">0dp</item>
|
|
<item name="android:layout_marginStart">0dp</item>
|
|
<item name="android:layout_marginEnd">0dp</item>
|
|
<item name="android:layout_marginTop">0dp</item>
|
|
<item name="android:layout_marginBottom">0dp</item>
|
|
<item name="android:scrollbarStyle">outsideOverlay</item>
|
|
</style>
|
|
|
|
<style name="PreferenceFragmentListSinglePane" parent="@*android:style/PreferenceFragmentList">
|
|
<item name="android:paddingStart">@dimen/settings_side_margin</item>
|
|
<item name="android:paddingEnd">@dimen/settings_side_margin</item>
|
|
<item name="android:layout_marginStart">0dp</item>
|
|
<item name="android:layout_marginEnd">0dp</item>
|
|
<item name="android:scrollbarStyle">outsideOverlay</item>
|
|
</style>
|
|
|
|
<style name="SettingsPreferenceHeaderPanel" parent="@*android:style/PreferenceHeaderPanel">
|
|
</style>
|
|
|
|
<style name="SettingsPreferenceHeaderList" parent="@*android:style/PreferenceHeaderList">
|
|
</style>
|
|
|
|
<style name="VertDivider">
|
|
<item name="android:layout_width">@dimen/vert_divider_width</item>
|
|
<item name="android:layout_height">fill_parent</item>
|
|
<item name="android:background">@color/divider_color</item>
|
|
<item name="android:focusable">false</item>
|
|
<item name="android:clickable">false</item>
|
|
</style>
|
|
|
|
<!-- We'd like to have this as 16dip hight including paddingTop/paddingBottom to
|
|
be consistent with ProgressBar -->
|
|
<style name="TopDivider">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">@dimen/divider_height</item>
|
|
<item name="android:background">?attr/setup_divider_color</item>
|
|
<item name="android:focusable">false</item>
|
|
<item name="android:clickable">false</item>
|
|
<item name="android:layout_marginTop">@dimen/divider_margin_top</item>
|
|
<item name="android:layout_marginBottom">@dimen/divider_margin_bottom</item>
|
|
</style>
|
|
|
|
<style name="SetupTitle">
|
|
<item name="android:fontFamily">sans-serif-light</item>
|
|
<item name="android:textSize">@dimen/setup_title_size</item>
|
|
<item name="android:textColor">@color/title_color</item>
|
|
<item name="android:clickable">false</item>
|
|
<item name="android:longClickable">false</item>
|
|
</style>
|
|
|
|
<style name="wifi_item">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:layout_marginTop">8dip</item>
|
|
<item name="android:layout_marginStart">16dip</item>
|
|
<item name="android:layout_marginEnd">16dip</item>
|
|
<item name="android:orientation">vertical</item>
|
|
<item name="android:gravity">start</item>
|
|
</style>
|
|
|
|
<style name="wifi_item_label">
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:textSize">14sp</item>
|
|
<item name="android:textAlignment">viewStart</item>
|
|
</style>
|
|
|
|
<style name="wifi_item_content">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:textSize">18sp</item>
|
|
<item name="android:textAlignment">viewStart</item>
|
|
</style>
|
|
|
|
<style name="wifi_item_edit_content">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:textSize">18sp</item>
|
|
</style>
|
|
|
|
<style name="wifi_section">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:orientation">vertical</item>
|
|
</style>
|
|
|
|
<style name="setup_wizard_button">
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
</style>
|
|
|
|
<style name="Transparent">
|
|
<item name="android:windowBackground">@android:color/transparent</item>
|
|
<item name="android:windowNoTitle">true</item>
|
|
<item name="android:windowIsFloating">true</item>
|
|
</style>
|
|
|
|
<style name="CryptKeeperBlankTheme" parent="@android:style/Theme.Holo.NoActionBar">
|
|
<item name="android:background">#ff000000</item>
|
|
</style>
|
|
|
|
<style name="SecurityPreferenceButtonContainer" parent="@android:style/Holo.SegmentedButton">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:weightSum">2</item>
|
|
<item name="android:dividerPadding">8dip</item>
|
|
</style>
|
|
|
|
<style name="SecurityPreferenceButton" parent="@android:style/Widget.Holo.Button.Borderless">
|
|
<item name="android:layout_width">0dip</item>
|
|
<item name="android:layout_weight">1</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:ellipsize">marquee</item>
|
|
<item name="android:singleLine">true</item>
|
|
</style>
|
|
|
|
<style name="vpn_label">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
|
|
</style>
|
|
|
|
<style name="vpn_value">
|
|
<item name="android:layout_width">match_parent</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
|
|
<item name="android:singleLine">true</item>
|
|
</style>
|
|
|
|
<style name="InputMethodPreferenceStyle">
|
|
<item name="android:layout">@layout/preference_inputmethod</item>
|
|
<item name="android:widgetLayout">@layout/preference_inputmethod_widget</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.Switch" parent="@*android:style/TextAppearance.Holo.Widget.Switch">
|
|
<item name="android:textAllCaps">true</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.PagerTabs" parent="@android:style/TextAppearance.DeviceDefault.Small">
|
|
<item name="android:textAllCaps">true</item>
|
|
<item name="android:textStyle">bold</item>
|
|
</style>
|
|
|
|
<style name="KeyguardAppWidgetItem">
|
|
<item name="android:textSize">18sp</item>
|
|
</style>
|
|
|
|
<!-- Scrollbar style OUTSIDE_OVERLAY -->
|
|
<integer name="preference_scrollbar_style">33554432</integer>
|
|
|
|
<style name="ApnPreference">
|
|
<item name="android:layout">@layout/apn_preference_layout</item>
|
|
</style>
|
|
</resources>
|