Files
lawnchair/quickstep/res/layout/search_result_widget_live.xml
Samuel Fufa 7c1e37cce1 Migrate Widgets to new Search API
Test: Manual

Bug: 168321831
Bug: 177223401
Change-Id: Ide276002a47f2345fbe535adbcb3acdc2fbc1233
2021-01-28 06:15:47 -06:00

43 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<com.android.launcher3.search.SearchResultWidget
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingVertical="@dimen/widget_section_vertical_padding"
android:layout_marginBottom="@dimen/widget_section_vertical_padding"
android:gravity="center"
>
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<com.android.launcher3.BubbleTextView
android:id="@+id/widget_provider"
android:layout_width="wrap_content"
android:layout_height="@dimen/widget_section_height"
android:drawablePadding="@dimen/widget_section_horizontal_padding"
android:focusable="true"
android:gravity="start|center_vertical"
android:paddingHorizontal="@dimen/widget_section_horizontal_padding"
android:paddingVertical="@dimen/widget_section_horizontal_padding"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"
android:textAlignment="viewStart"
launcher:iconDisplay="widget_section"
launcher:layoutHorizontal="true"
launcher:iconSizeOverride="@dimen/widget_section_icon_size" />
<TextView
android:id="@+id/widget_label"
android:layout_width="wrap_content"
android:layout_height="@dimen/widget_section_height"
android:textSize="16sp" />
</LinearLayout>
</com.android.launcher3.search.SearchResultWidget>