blob: 78c735b8d2b77c329a8ee1eb51475b88c2f0fe28 [file] [log] [blame]
/*
* Copyright (C) 2020 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 com.android.app.search;
/**
* Constants to be used with {@link SearchTarget}.
*/
public class LayoutType {
// ------
// | icon |
// ------
// text
public static final String ICON_SINGLE_VERTICAL_TEXT = "icon";
// Below three layouts (to be deprecated) and two layouts render
// {@link SearchTarget}s in following layout.
// ------ ------ ------
// | | title |(opt)| |(opt)|
// | icon | subtitle (optional) | icon| | icon|
// ------ ------ ------
@Deprecated
public static final String ICON_SINGLE_HORIZONTAL_TEXT = "icon_text_row";
@Deprecated
public static final String ICON_DOUBLE_HORIZONTAL_TEXT = "icon_texts_row";
@Deprecated
public static final String ICON_DOUBLE_HORIZONTAL_TEXT_BUTTON = "icon_texts_button";
// will replace ICON_DOUBLE_* ICON_SINGLE_* layouts
public static final String ICON_HORIZONTAL_TEXT = "icon_row";
public static final String HORIZONTAL_MEDIUM_TEXT = "icon_row_medium";
public static final String EXTRA_TALL_ICON_ROW = "extra_tall_icon_row";
public static final String SMALL_ICON_HORIZONTAL_TEXT = "short_icon_row";
public static final String SMALL_ICON_HORIZONTAL_TEXT_THUMBNAIL = "short_icon_row_thumbnail";
// This layout contains a series of thumbnails (currently up to 3 per row)
public static final String THUMBNAIL_CONTAINER = "thumbnail_container";
// This layout creates a container for people grouping
// Only available above version code 2
public static final String BIG_ICON_MEDIUM_HEIGHT_ROW = "big_icon_medium_row";
// This layout creates square thumbnail image (currently 3 column)
public static final String THUMBNAIL = "thumbnail";
// This layout contains an icon and slice
public static final String ICON_SLICE = "slice";
// Widget bitmap preview
public static final String WIDGET_PREVIEW = "widget_preview";
// Live widget search result
public static final String WIDGET_LIVE = "widget_live";
// Layout type used to display people tiles using shortcut info
public static final String PEOPLE_TILE = "people_tile";
// Deprecated
// text based header to group various layouts in low confidence section of the results.
public static final String TEXT_HEADER = "header";
// horizontal bar to be inserted between fallback search results and low confidence section
public static final String EMPTY_DIVIDER = "empty_divider";
// layout representing quick calculations
public static final String CALCULATOR = "calculator";
// From version code 4, if TEXT_HEADER_ROW is used, no need to insert this on-device
// section header.
public static final String SECTION_HEADER = "section_header";
// layout for a tall card with header and image, and no icon.
public static final String TALL_CARD_WITH_IMAGE_NO_ICON = "tall_card_with_image_no_icon";
// Layout for a text header
// Available for SearchUiManager proxy service to use above version code 3
public static final String TEXT_HEADER_ROW = "text_header_row";
}