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:supportsRtl="true" 31 android:theme="@style/DemoTheme"> 32 33 <activity android:name=".SupportPreferenceDemos"> 34 <intent-filter> 35 <action android:name="android.intent.action.MAIN" /> 36 <category android:name="android.intent.category.DEFAULT" /> 37 <category android:name="android.intent.category.LAUNCHER" /> 38 <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> 39 </intent-filter> 40 </activity> 41 42 <activity android:name=".FragmentSupportPreferences" 43 android:label="@string/fragment_support_preferences_demo" 44 android:theme="@style/SupportPreference"> 45 <intent-filter> 46 <action android:name="android.intent.action.MAIN"/> 47 <category android:name="com.example.android.supportpreference.SAMPLE_CODE"/> 48 </intent-filter> 49 </activity> 50 51 <activity android:name=".FragmentSupportPreferencesCompat" 52 android:label="@string/fragment_support_preferences_compat_demo" 53 android:theme="@style/SupportPreferenceCompat"> 54 <intent-filter> 55 <action android:name="android.intent.action.MAIN"/> 56 <category android:name="com.example.android.supportpreference.SAMPLE_CODE"/> 57 </intent-filter> 58 </activity> 59 60 <!-- Nothing technically wrong with showing this on a non-TV platform --> 61 <activity android:name=".FragmentSupportPreferencesLeanback" 62 android:label="@string/fragment_support_preferences_leanback_demo" 63 android:theme="@style/SupportPreferenceLeanback" 64 android:enabled="@bool/atLeastJellyBeanMR2"> 65 <intent-filter> 66 <action android:name="android.intent.action.MAIN"/> 67 <category android:name="com.example.android.supportpreference.SAMPLE_CODE"/> 68 </intent-filter> 69 </activity> 70 71 </application> 72 </manifest> 73