• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2016 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License
15  -->
16
17<manifest
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tools="http://schemas.android.com/tools"
20    package="com.example.android.supportpreference">
21
22    <uses-sdk android:targetSdkVersion="24"
23        tools:overrideLibrary="android.support.v17.preference, android.support.v17.leanback" />
24
25    <uses-feature android:name="android.software.Leanback" android:required="false" />
26
27    <application android:label="pref demo"
28        android:icon="@drawable/app_sample_code"
29        android:allowBackup="false"
30        android:theme="@style/DemoTheme">
31
32        <activity android:name=".SupportPreferenceDemos">
33            <intent-filter>
34                <action android:name="android.intent.action.MAIN" />
35                <category android:name="android.intent.category.DEFAULT" />
36                <category android:name="android.intent.category.LAUNCHER" />
37                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
38            </intent-filter>
39        </activity>
40
41        <activity android:name=".FragmentSupportPreferences"
42            android:label="@string/fragment_support_preferences_demo"
43            android:theme="@style/SupportPreference">
44            <intent-filter>
45                <action android:name="android.intent.action.MAIN"/>
46                <category android:name="com.example.android.supportpreference.SAMPLE_CODE"/>
47            </intent-filter>
48        </activity>
49
50        <activity android:name=".FragmentSupportPreferencesCompat"
51            android:label="@string/fragment_support_preferences_compat_demo"
52            android:theme="@style/SupportPreferenceCompat">
53            <intent-filter>
54                <action android:name="android.intent.action.MAIN"/>
55                <category android:name="com.example.android.supportpreference.SAMPLE_CODE"/>
56            </intent-filter>
57        </activity>
58
59        <!-- Nothing technically wrong with showing this on a non-TV platform -->
60        <activity android:name=".FragmentSupportPreferencesLeanback"
61            android:label="@string/fragment_support_preferences_leanback_demo"
62            android:theme="@style/SupportPreferenceLeanback"
63            android:enabled="@bool/atLeastJellyBeanMR2">
64            <intent-filter>
65                <action android:name="android.intent.action.MAIN"/>
66                <category android:name="com.example.android.supportpreference.SAMPLE_CODE"/>
67            </intent-filter>
68        </activity>
69
70    </application>
71</manifest>
72