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 com.android.launcher3.taskbar.navbutton; 18 19 import android.annotation.DimenRes; 20 import android.annotation.DrawableRes; 21 import android.annotation.IdRes; 22 23 import com.android.launcher3.R; 24 25 /** 26 * A class for retrieving resources in Kotlin. 27 * 28 * This class should be removed once the build system supports resources loading in Kotlin. 29 */ 30 public final class LayoutResourceHelper { 31 32 // -------------------------- 33 // Kids Nav Layout 34 @DimenRes 35 public static final int DIMEN_TASKBAR_ICON_SIZE_KIDS = R.dimen.taskbar_icon_size_kids; 36 @DrawableRes 37 public static final int DRAWABLE_SYSBAR_BACK_KIDS = R.drawable.ic_sysbar_back_kids; 38 @DrawableRes 39 public static final int DRAWABLE_SYSBAR_HOME_KIDS = R.drawable.ic_sysbar_home_kids; 40 @DimenRes 41 public static final int DIMEN_TASKBAR_HOME_BUTTON_LEFT_MARGIN_KIDS = 42 R.dimen.taskbar_home_button_left_margin_kids; 43 @DimenRes 44 public static final int DIMEN_TASKBAR_BACK_BUTTON_LEFT_MARGIN_KIDS = 45 R.dimen.taskbar_back_button_left_margin_kids; 46 @DimenRes 47 public static final int DIMEN_TASKBAR_NAV_BUTTONS_WIDTH_KIDS = 48 R.dimen.taskbar_nav_buttons_width_kids; 49 @DimenRes 50 public static final int DIMEN_TASKBAR_NAV_BUTTONS_HEIGHT_KIDS = 51 R.dimen.taskbar_nav_buttons_height_kids; 52 @DimenRes 53 public static final int DIMEN_TASKBAR_NAV_BUTTONS_CORNER_RADIUS_KIDS = 54 R.dimen.taskbar_nav_buttons_corner_radius_kids; 55 56 // -------------------------- 57 // Nav Layout Factory 58 @IdRes 59 public static final int ID_START_CONTEXTUAL_BUTTONS = R.id.start_contextual_buttons; 60 @IdRes 61 public static final int ID_END_CONTEXTUAL_BUTTONS = R.id.end_contextual_buttons; 62 @IdRes 63 public static final int ID_END_NAV_BUTTONS = R.id.end_nav_buttons; 64 LayoutResourceHelper()65 private LayoutResourceHelper() { 66 67 } 68 } 69