blob: 93c54395f972f84ed7fceef48543eb35af53b37e (
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
|
/*
* Copyright (C) 2022 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.
*/
package android.inputmethodservice.navigationbar;
import android.annotation.ColorInt;
final class NavigationBarConstants {
private NavigationBarConstants() {
// Not intended to be instantiated.
}
// Copied from "navbar_back_button_ime_offset"
// TODO(b/215443343): Handle this in the drawable then remove this constant.
static final float NAVBAR_BACK_BUTTON_IME_OFFSET = 2.0f;
// Copied from "light_mode_icon_color_single_tone" at packages/SettingsLib/res/values/colors.xml
@ColorInt
static final int LIGHT_MODE_ICON_COLOR_SINGLE_TONE = 0xffffffff;
// Copied from "dark_mode_icon_color_single_tone" at packages/SettingsLib/res/values/colors.xml
@ColorInt
static final int DARK_MODE_ICON_COLOR_SINGLE_TONE = 0x99000000;
// Copied from "navigation_bar_deadzone_hold"
static final int NAVIGATION_BAR_DEADZONE_HOLD = 333;
// Copied from "navigation_bar_deadzone_hold"
static final int NAVIGATION_BAR_DEADZONE_DECAY = 333;
// Copied from "navigation_bar_deadzone_size"
static final float NAVIGATION_BAR_DEADZONE_SIZE = 12.0f;
// Copied from "navigation_bar_deadzone_size_max"
static final float NAVIGATION_BAR_DEADZONE_SIZE_MAX = 32.0f;
// Copied from "nav_key_button_shadow_offset_x"
static final float NAV_KEY_BUTTON_SHADOW_OFFSET_X = 0.0f;
// Copied from "nav_key_button_shadow_offset_y"
static final float NAV_KEY_BUTTON_SHADOW_OFFSET_Y = 1.0f;
// Copied from "nav_key_button_shadow_radius"
static final float NAV_KEY_BUTTON_SHADOW_RADIUS = 0.5f;
// Copied from "nav_key_button_shadow_color"
@ColorInt
static final int NAV_KEY_BUTTON_SHADOW_COLOR = 0x30000000;
}
|