Devices between 600 and 719dp will now use the two-bar (phone) SystemUI layout, or something like it, derived from PhoneStatusBar. Devices above 720dp will use the system bar from TabletStatusBar. However, this distinction is not to be made based on dp, at least, not by the SystemUI; the goal is to drive most of this switch from the window manager. Therefore most of SystemUI's sw600dp resources have been folded into the main set of resources (renaming them to avoid collisions where appropriate). This allows SystemUI to choose which set of resources to use entirely by switching status bar components, entirely independent of Configuration. (For some resources, particularly around recents, it seemed more expeditious to keep relying on the device configuration, so those resources have been bumped up to sw720dp.) Bug: 6297838 Change-Id: I3f5414a6a718bdc83f51930d6878cdf97df48c9c
40 lines
1.6 KiB
XML
40 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 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>
|
|
<declare-styleable name="KeyButtonView">
|
|
<!-- key code to send when pressed; if absent or 0, no key is sent -->
|
|
<attr name="keyCode" format="integer" />
|
|
<!-- does this button generate longpress / repeat events? -->
|
|
<attr name="keyRepeat" format="boolean" />
|
|
<!-- drawable to use for a swelling, glowing background on press -->
|
|
<attr name="glowBackground" format="reference" />
|
|
</declare-styleable>
|
|
<declare-styleable name="ToggleSlider">
|
|
<attr name="text" format="string" />
|
|
</declare-styleable>
|
|
<declare-styleable name="NotificationLinearLayout">
|
|
<attr name="insetLeft" format="dimension" />
|
|
</declare-styleable>
|
|
<declare-styleable name="NotificationRowLayout">
|
|
<attr name="rowHeight" format="dimension" />
|
|
</declare-styleable>
|
|
<declare-styleable name="RecentsPanelView">
|
|
<attr name="recentItemLayout" format="reference" />
|
|
</declare-styleable>
|
|
</resources>
|
|
|