1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.inputmethodservice.navigationbar; 18 19 import android.annotation.ColorInt; 20 21 final class NavigationBarConstants { NavigationBarConstants()22 private NavigationBarConstants() { 23 // Not intended to be instantiated. 24 } 25 26 // Copied from "navbar_back_button_ime_offset" 27 // TODO(b/215443343): Handle this in the drawable then remove this constant. 28 static final float NAVBAR_BACK_BUTTON_IME_OFFSET = 2.0f; 29 30 // Copied from "light_mode_icon_color_single_tone" at packages/SettingsLib/res/values/colors.xml 31 @ColorInt 32 static final int LIGHT_MODE_ICON_COLOR_SINGLE_TONE = 0xffffffff; 33 34 // Copied from "dark_mode_icon_color_single_tone" at packages/SettingsLib/res/values/colors.xml 35 @ColorInt 36 static final int DARK_MODE_ICON_COLOR_SINGLE_TONE = 0x99000000; 37 38 // Copied from "navigation_bar_deadzone_hold" 39 static final int NAVIGATION_BAR_DEADZONE_HOLD = 333; 40 41 // Copied from "navigation_bar_deadzone_hold" 42 static final int NAVIGATION_BAR_DEADZONE_DECAY = 333; 43 44 // Copied from "navigation_bar_deadzone_size" 45 static final float NAVIGATION_BAR_DEADZONE_SIZE = 12.0f; 46 47 // Copied from "navigation_bar_deadzone_size_max" 48 static final float NAVIGATION_BAR_DEADZONE_SIZE_MAX = 32.0f; 49 50 // Copied from "nav_key_button_shadow_offset_x" 51 static final float NAV_KEY_BUTTON_SHADOW_OFFSET_X = 0.0f; 52 53 // Copied from "nav_key_button_shadow_offset_y" 54 static final float NAV_KEY_BUTTON_SHADOW_OFFSET_Y = 1.0f; 55 56 // Copied from "nav_key_button_shadow_radius" 57 static final float NAV_KEY_BUTTON_SHADOW_RADIUS = 0.5f; 58 59 // Copied from "nav_key_button_shadow_color" 60 @ColorInt 61 static final int NAV_KEY_BUTTON_SHADOW_COLOR = 0x30000000; 62 } 63