summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/speeddial/res/values/dimens.xml
blob: ce2de9dcc0cff18f154c9b413015d97c61b5b1f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2017 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>
  <dimen name="scrollview_max_height">280dp</dimen>
  <dimen name="speed_dial_context_menu_width">200dp</dimen>
  <dimen name="context_menu_elevation">4dp</dimen>
  <dimen name="speed_dial_recyclerview_horizontal_padding">16dp</dimen>

  <!--
   ~ This value expands the context menu to allow space for more text w/o being flush with the edge
   ~ of the screen. Calculated with 2 * (speed_dial_recyclerview_horizontal_padding - 2dp)
   -->
  <dimen name="speed_dial_context_menu_extra_width">28dp</dimen>
  <!--
   ~ This value centers the context menu with the favorite item layout.
   ~ Calculated with -1 * (speed_dial_context_menu_extra_width * 1.75)
   -->
  <dimen name="speed_dial_context_menu_x_offset">-24dp</dimen>
  <dimen name="speed_dial_context_menu_corner_radius">16dp</dimen>
</resources>