summaryrefslogtreecommitdiffstats
path: root/res/values/constants.xml
blob: f05a3405fd13a611b6eaeacd2aa5f8785b3a20db (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2011 Google Inc.
     Licensed to 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>
    <!-- Boolean value indicating whether the tablet UI should be used. -->
    <integer name="use_tablet_ui">0</integer>
    <integer name="conversation_list_header_mode">1</integer>
    <integer name="conversation_header_mode">1</integer>
    <integer name="conversation_list_search_header_mode">1</integer>

    <!-- left/right conversations will auto-load if they have no more than this number of messages -->
    <integer name="max_auto_load_messages">20</integer>

    <!-- Frequency (in milliseconds) for the refresh of timestamps in conversation list fragments. -->
    <integer name="timestamp_update_interval">60000</integer>

    <!-- Relative weights of the different views.  These three
         determine how much of the screen width is taken by the
         different views. For the default layout (phone), these values
         are equal. These are only used in TwoPaneLayout, so they need
         to be specified for sw600dp and sw720dp layouts. -->
    <integer name="folder_list_weight">1</integer>
    <integer name="conversation_list_weight">1</integer>
    <integer name="conversation_view_weight">1</integer>
    <!-- Max unread count to show for a folder -->
    <integer name="maxUnreadCount">999</integer>
    <integer name="swipeScrollSlop">2</integer>
    <integer name="leaveBehindSwipeScrollSlop">25</integer>
    <integer name="widget_refresh_delay_ms">4000</integer>
    <integer name="widget_folder_refresh_delay_ms">500</integer>
    <!-- We don't want the unread count to flicker too much in the action bar, when a lot of
    activity.  Throttle loader updates. -->
    <integer name="folder_item_refresh_delay_ms">500</integer>
    <!-- Delay showing undo bar after a destructive action long enough for the user to process the animations for what just happened -->
    <integer name="show_undo_bar_delay_ms">200</integer>
    <!-- Delay dismissing undo bar after a touch so we know whether to hide the action bar or to reposition it during view mode change -->
    <integer name="dismiss_undo_bar_delay_ms">300</integer>
    <integer name="conversation_desired_font_size_px">14</integer>
    <!-- matches 'font-size' style in template_conversation_upper.html -->
    <integer name="conversation_unstyled_font_size_px">13</integer>
    <integer name="conversation_webview_viewport_px">980</integer>

    <!-- Whether the list is collapsible in conversation view mode -->
    <bool name="list_collapsible">true</bool>

    <!-- Whether to show single or 2 pane search results -->
    <bool name="show_two_pane_search_results">false</bool>

    <!-- Whether to show the archive item as disabled rather than hiding it entirely -->
    <bool name="show_disabled_archive_menu_item">false</bool>

    <!-- Whether to show conversation subject in conversation view -->
    <bool name="show_conversation_subject">true</bool>

    <!-- Amount of memory in bytes allocated for image cache -->
    <integer name="config_image_cache_max_bytes">1500000</integer>

    <!-- Number of decoded contact photo bitmaps retained in an LRU cache -->
    <integer name="config_image_cache_max_bitmaps">24</integer>

    <!-- Whether to display folder colors in the widget -->
    <bool name="display_folder_colors_in_widget">false</bool>

    <integer name="max_num_notification_digest_items">10</integer>

    <!-- Wait at least this long for the webview to render conversation content before showing the loading dialog -->
    <integer name="conversationview_show_loading_delay">500</integer>

    <!-- Wait at least this long to dismiss the spinner when loading a conversation -->
    <integer name="conversationview_min_show_loading">250</integer>

    <!-- Animation duration for showing the title bar again for SecureConversationViewFragment -->
    <integer name="title_bar_show_animation_duration">300</integer>

    <integer name="webview_initial_delay">1000</integer>

    <!-- The width or height of the preview will not exceed this -->
    <integer name="attachment_preview_max_size">256</integer>

    <!-- Whether or not to use a nice transition when showing the folder list fragment; used in 2-pane layouts -->
    <integer name="use_folder_list_fragment_transition">1</integer>

    <!-- The timeout, in milliseconds, before the "Undo" notification is removed. -->
    <integer name="undo_notification_timeout">6000</integer>

    <!-- The max number of contact images to show in a conversation list item -->
    <integer name="max_list_item_images">4</integer>


    <!-- True if addresses can be veiled, to show a friendly text message instead. -->
    <bool name="veiled_address_enabled">false</bool>

    <!-- Whether to show the priority indicator inline with the senders in conversation list view -->
    <bool name="inline_personal_level">true</bool>

    <integer name="swipe_senders_length">25</integer>

    <!-- Number of menu items to display in the ActionBar -->
    <integer name="actionbar_max_items">3</integer>

    <!-- Number of menu items to hide from the ActionBar by subtracting from actionbar_max_items in non-cab mode -->
    <integer name="actionbar_hidden_non_cab_items_no_physical_button">1</integer>
</resources>