This fixes a problem where the bounds of the view weren't being calculated properly when a separate outer radius was specified. The code now takes the maximum of the ring drawable's width/height and that specified in the resource files. This gives it the best default look on all devices while still allowing minor tweaks. Change-Id: I5daa40ff4f14653c8cc89b39102816afb976e4f7
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
* Copyright (c) 2012, 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>
|
|
<!-- The width of the notification panel window: 446 + 16 + 16 (padding in the bg drawable) -->
|
|
<dimen name="notification_panel_width">478dp</dimen>
|
|
|
|
<!-- Layout parameters for the notification panel -->
|
|
<dimen name="notification_panel_margin_bottom">192dp</dimen>
|
|
<dimen name="notification_panel_margin_left">0dp</dimen>
|
|
|
|
<!-- Gravity for the notification panel -->
|
|
<!-- 0x33 = center_horizontal|top -->
|
|
<integer name="notification_panel_layout_gravity">0x31</integer>
|
|
|
|
<!-- Diameter of outer shape drawable shown in navbar search-->
|
|
<dimen name="navbar_search_outerring_diameter">364dp</dimen>
|
|
|
|
<!-- Height of search panel including navigation bar height -->
|
|
<dimen name="navbar_search_panel_height">300dip</dimen>
|
|
|
|
<!-- Extra space above the clock in the panel; on this device, zero -->
|
|
<dimen name="notification_panel_header_padding_top">0dp</dimen>
|
|
|
|
<!-- Size of application thumbnail -->
|
|
<dimen name="status_bar_recents_thumbnail_width">200dp</dimen>
|
|
<dimen name="status_bar_recents_thumbnail_height">177dp</dimen>
|
|
</resources>
|