mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
With this, we can now show app title and support drag/drop for shortcut results. Bug: 172245107 preview: https://drive.google.com/file/d/1A4eKKTDPht-MDbfA2VFI3OuAO36fc3AS/view?usp=sharing Change-Id: Icf94a2d23b44bfe5527aea71e27178906e5deb3e
74 lines
3.1 KiB
XML
74 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- 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.
|
|
-->
|
|
<com.android.launcher3.views.SearchResultIconRow xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/dynamic_grid_edge_margin">
|
|
|
|
<com.android.launcher3.views.SearchResultIcon
|
|
android:layout_width="wrap_content"
|
|
android:id="@+id/icon"
|
|
launcher:iconDisplay="hero_app"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/dynamic_grid_edge_margin"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:id="@id/title"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start|center_vertical"
|
|
android:textAlignment="viewStart"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/settings_hero_title_size" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:id="@+id/desc"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
android:textSize="@dimen/settings_hero_subtitle_size"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<com.android.launcher3.BubbleTextView
|
|
android:id="@+id/shortcut_0"
|
|
style="@style/BaseIcon"
|
|
android:layout_width="@dimen/deep_shortcut_icon_size"
|
|
android:layout_height="match_parent"
|
|
android:gravity="start|center_vertical"
|
|
launcher:iconDisplay="shortcut_popup"
|
|
android:textSize="@dimen/settings_hero_subtitle_size"
|
|
launcher:iconSizeOverride="@dimen/deep_shortcut_icon_size"
|
|
launcher:layoutHorizontal="false" />
|
|
|
|
<com.android.launcher3.BubbleTextView
|
|
android:id="@+id/shortcut_1"
|
|
style="@style/BaseIcon"
|
|
android:layout_width="@dimen/deep_shortcut_icon_size"
|
|
android:layout_height="match_parent"
|
|
launcher:iconDisplay="shortcut_popup"
|
|
android:textSize="@dimen/settings_hero_inline_button_size"
|
|
launcher:iconSizeOverride="@dimen/deep_shortcut_icon_size"
|
|
launcher:layoutHorizontal="false" />
|
|
|
|
</com.android.launcher3.views.SearchResultIconRow> |