The page is aligned to the workspace card and shows a widgets button in the empty region Change-Id: I479c47a2fbac4b3ef1aaf833d9fe82b5d7e10ddc
57 lines
2.2 KiB
XML
57 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2017 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.quickstep.RecentsView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:theme="@style/HomeScreenElementTheme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:alpha="0.0"
|
|
android:visibility="invisible" >
|
|
|
|
<com.android.launcher3.uioverrides.WorkspaceCard
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="@dimen/task_thumbnail_top_margin" >
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/workspace_click_target" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:id="@+id/widget_button"
|
|
android:background="@drawable/bg_workspace_card_button" >
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/widget_button_text"
|
|
android:drawableStart="@drawable/ic_widget"
|
|
android:textColor="?attr/workspaceTextColor"
|
|
android:drawableTint="?attr/workspaceTextColor"
|
|
android:gravity="center"
|
|
android:layout_gravity="center"
|
|
android:drawablePadding="20dp" />
|
|
</FrameLayout>
|
|
|
|
</com.android.launcher3.uioverrides.WorkspaceCard>
|
|
|
|
</com.android.quickstep.RecentsView> |