2016-04-29 08:39:03 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2016 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.shortcuts.DeepShortcutView
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-02-11 08:52:16 +08:00
|
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
2017-02-28 08:30:47 +08:00
|
|
|
android:layout_width="@dimen/bg_popup_item_width"
|
2017-06-07 06:42:32 +08:00
|
|
|
android:layout_height="@dimen/bg_popup_item_height"
|
|
|
|
android:theme="@style/PopupItem" >
|
2016-07-16 08:23:07 +08:00
|
|
|
|
2017-02-11 08:52:16 +08:00
|
|
|
<com.android.launcher3.shortcuts.DeepShortcutTextView
|
|
|
|
style="@style/BaseIcon"
|
2017-03-21 08:12:24 +08:00
|
|
|
android:id="@+id/bubble_text"
|
2017-02-28 08:30:47 +08:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2017-02-11 08:52:16 +08:00
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:textAlignment="viewStart"
|
2017-05-10 08:23:47 +08:00
|
|
|
android:paddingStart="@dimen/deep_shortcuts_text_padding_start"
|
2017-04-11 05:05:34 +08:00
|
|
|
android:paddingEnd="@dimen/popup_padding_end"
|
2017-02-11 08:52:16 +08:00
|
|
|
android:drawableEnd="@drawable/deep_shortcuts_drag_handle"
|
|
|
|
android:drawablePadding="@dimen/deep_shortcut_drawable_padding"
|
|
|
|
android:textSize="14sp"
|
2017-05-10 08:23:47 +08:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2017-02-11 08:52:16 +08:00
|
|
|
android:fontFamily="sans-serif"
|
|
|
|
launcher:layoutHorizontal="true"
|
|
|
|
launcher:iconDisplay="shortcut_popup"
|
2017-03-21 08:12:24 +08:00
|
|
|
launcher:iconSizeOverride="@dimen/deep_shortcut_icon_size" />
|
2016-07-23 01:50:11 +08:00
|
|
|
|
|
|
|
<View
|
2017-02-28 08:30:47 +08:00
|
|
|
android:id="@+id/icon"
|
2016-07-23 01:50:11 +08:00
|
|
|
android:layout_width="@dimen/deep_shortcut_icon_size"
|
|
|
|
android:layout_height="@dimen/deep_shortcut_icon_size"
|
2017-04-11 05:05:34 +08:00
|
|
|
android:layout_marginStart="@dimen/popup_padding_start"
|
|
|
|
android:layout_gravity="start|center_vertical" />
|
2016-07-23 01:50:11 +08:00
|
|
|
|
2017-02-28 08:30:47 +08:00
|
|
|
<View
|
|
|
|
android:id="@+id/divider"
|
|
|
|
android:layout_width="@dimen/deep_shortcuts_divider_width"
|
|
|
|
android:layout_height="@dimen/popup_item_divider_height"
|
|
|
|
android:layout_gravity="end|bottom"
|
|
|
|
android:visibility="gone"
|
2017-06-07 06:42:32 +08:00
|
|
|
android:background="?attr/popupColorTertiary" />
|
2017-02-28 08:30:47 +08:00
|
|
|
|
2016-07-16 08:23:07 +08:00
|
|
|
</com.android.launcher3.shortcuts.DeepShortcutView>
|