android10_Launcher3_original
This commit is contained in:
38
tests/res/drawable/test_drawable_pin_item.xml
Normal file
38
tests/res/drawable/test_drawable_pin_item.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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.
|
||||
-->
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="48dp"
|
||||
android:height="48dp"
|
||||
android:viewportWidth="48.0"
|
||||
android:viewportHeight="48.0">
|
||||
|
||||
<path
|
||||
android:fillColor="#66000000"
|
||||
android:pathData="M0,24a24,24 0 1,0 48,0a24,24 0 1,0 -48,0"/>
|
||||
<path
|
||||
android:fillColor="#FF1B5E20"
|
||||
android:pathData="M2,24a22,22 0 1,0 44,0a22,22 0 1,0 -44,0"/>
|
||||
|
||||
<group
|
||||
android:translateX="12"
|
||||
android:translateY="12">
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"/>
|
||||
</group>
|
||||
</vector>
|
||||
7
tests/res/layout/test_layout_appwidget_blue.xml
Normal file
7
tests/res/layout/test_layout_appwidget_blue.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:background="#FF0000FF"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
7
tests/res/layout/test_layout_appwidget_red.xml
Normal file
7
tests/res/layout/test_layout_appwidget_red.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:background="#FFFF0000"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
14
tests/res/layout/test_layout_appwidget_view.xml
Normal file
14
tests/res/layout/test_layout_appwidget_view.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFF00">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="20dp"
|
||||
android:background="#FF0000"
|
||||
android:id="@android:id/icon" />
|
||||
</FrameLayout>
|
||||
BIN
tests/res/raw/aardwolf_dummy_app.apk
Normal file
BIN
tests/res/raw/aardwolf_dummy_app.apk
Normal file
Binary file not shown.
6
tests/res/values/strings.xml
Normal file
6
tests/res/values/strings.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="shortcut1" translatable="false">Shortcut 1</string>
|
||||
<string name="shortcut2" translatable="false">Shortcut 2</string>
|
||||
<string name="shortcut3" translatable="false">Shortcut 3</string>
|
||||
</resources>
|
||||
11
tests/res/xml/appwidget_hidden.xml
Normal file
11
tests/res/xml/appwidget_hidden.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:minWidth="180dp"
|
||||
android:minHeight="110dp"
|
||||
android:updatePeriodMillis="86400000"
|
||||
android:initialLayout="@layout/test_layout_appwidget_blue"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:widgetFeatures="hide_from_picker"
|
||||
android:widgetCategory="home_screen">
|
||||
</appwidget-provider>
|
||||
10
tests/res/xml/appwidget_no_config.xml
Normal file
10
tests/res/xml/appwidget_no_config.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:minWidth="180dp"
|
||||
android:minHeight="110dp"
|
||||
android:updatePeriodMillis="86400000"
|
||||
android:initialLayout="@layout/test_layout_appwidget_red"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:widgetCategory="home_screen">
|
||||
</appwidget-provider>
|
||||
12
tests/res/xml/appwidget_with_config.xml
Normal file
12
tests/res/xml/appwidget_with_config.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<appwidget-provider
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:minWidth="180dp"
|
||||
android:minHeight="110dp"
|
||||
android:updatePeriodMillis="86400000"
|
||||
android:initialLayout="@layout/test_layout_appwidget_blue"
|
||||
android:configure="com.android.launcher3.testcomponent.WidgetConfigActivity"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:widgetFeatures="reconfigurable"
|
||||
android:widgetCategory="home_screen">
|
||||
</appwidget-provider>
|
||||
18
tests/res/xml/shortcuts.xml
Normal file
18
tests/res/xml/shortcuts.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<shortcut
|
||||
android:shortcutId="shortcut1"
|
||||
android:shortcutShortLabel="@string/shortcut1">
|
||||
<intent android:action="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
</shortcut>
|
||||
<shortcut
|
||||
android:shortcutId="shortcut2"
|
||||
android:shortcutShortLabel="@string/shortcut2">
|
||||
<intent android:action="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
</shortcut>
|
||||
<shortcut
|
||||
android:shortcutId="shortcut3"
|
||||
android:shortcutShortLabel="@string/shortcut3">
|
||||
<intent android:action="com.android.launcher3.intent.action.test_shortcut"/>
|
||||
</shortcut>
|
||||
</shortcuts>
|
||||
Reference in New Issue
Block a user