Home | History | Annotate | Download | only in Support7Demos
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2013 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 <!-- Declare the contents of this Android application.  The namespace
     18      attribute brings in the Android platform namespace, and the package
     19      supplies a unique name for the application.  When writing your
     20      own application, the package name must be changed from "com.example.*"
     21      to come from a domain that you own or have control over. -->
     22 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     23     package="com.example.android.supportv7">
     24     <!-- Permission for INTERNET is required for streaming video content
     25          from the web, it's not required otherwise. -->
     26     <uses-permission android:name="android.permission.INTERNET" />
     27     <!-- Permission for SYSTEM_ALERT_WINDOW is only required for emulating
     28          remote display using system alert window. -->
     29     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
     30     <!-- Permission for READ_EXTERNAL_STORAGE is explicitly required for
     31          reading images from the media store from API v19+. -->
     32     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
     33 
     34     <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21" />
     35 
     36     <!-- The smallest screen this app works on is a phone.  The app will
     37          scale its UI to larger screens but doesn't make good use of them
     38          so allow the compatibility mode button to be shown (mostly because
     39          this is just convenient for testing). -->
     40     <supports-screens android:requiresSmallestWidthDp="320"
     41             android:compatibleWidthLimitDp="480" />
     42 
     43     <application android:label="@string/activity_sample_code"
     44             android:supportsRtl="true"
     45             android:icon="@drawable/app_sample_code"
     46             android:hardwareAccelerated="true">
     47 
     48         <activity android:name="Support7Demos">
     49             <intent-filter>
     50                 <action android:name="android.intent.action.MAIN" />
     51                 <category android:name="android.intent.category.DEFAULT" />
     52                 <category android:name="android.intent.category.LAUNCHER" />
     53             </intent-filter>
     54         </activity>
     55         <receiver android:name="com.example.android.supportv7.media.SampleMediaButtonReceiver">
     56             <intent-filter>
     57                 <action android:name="android.intent.action.MEDIA_BUTTON" />
     58             </intent-filter>
     59         </receiver>
     60         <!-- MediaRouter Support Samples -->
     61 
     62         <activity android:name=".media.SampleMediaRouterActivity"
     63                 android:label="@string/sample_media_router_activity_dark"
     64                 android:theme="@style/Theme.AppCompat">
     65             <intent-filter>
     66                 <action android:name="android.intent.action.MAIN" />
     67                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
     68             </intent-filter>
     69         </activity>
     70 
     71         <activity android:name=".media.SampleMediaRouterActivity$Light"
     72                 android:label="@string/sample_media_router_activity_light"
     73                 android:theme="@style/Theme.AppCompat.Light">
     74             <intent-filter>
     75                 <action android:name="android.intent.action.MAIN" />
     76                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
     77             </intent-filter>
     78         </activity>
     79 
     80         <activity android:name=".media.SampleMediaRouterActivity$LightWithDarkActionBar"
     81                 android:label="@string/sample_media_router_activity_light_with_dark_action_bar"
     82                 android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
     83             <intent-filter>
     84                 <action android:name="android.intent.action.MAIN" />
     85                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
     86             </intent-filter>
     87         </activity>
     88 
     89         <activity android:name=".media.SampleMediaRouteSettingsActivity"
     90                 android:label="@string/sample_media_route_settings_activity"
     91                 android:theme="@style/Theme.AppCompat.Light">
     92             <intent-filter>
     93                 <action android:name="android.intent.action.MAIN" />
     94             </intent-filter>
     95         </activity>
     96 
     97         <service android:name=".media.SampleMediaRouteProviderService"
     98                 android:label="@string/sample_media_route_provider_service"
     99                 android:process=":mrp">
    100             <intent-filter>
    101                 <action android:name="android.media.MediaRouteProviderService" />
    102             </intent-filter>
    103         </service>
    104 
    105         <!-- GridLayout Support Samples -->
    106 
    107         <activity android:name=".view.GridLayout1"
    108                 android:label="@string/grid_layout_1">
    109             <intent-filter>
    110                 <action android:name="android.intent.action.MAIN" />
    111                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    112             </intent-filter>
    113         </activity>
    114 
    115         <activity android:name=".view.GridLayout2"
    116                 android:label="@string/grid_layout_2">
    117             <intent-filter>
    118                 <action android:name="android.intent.action.MAIN" />
    119                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    120             </intent-filter>
    121         </activity>
    122 
    123         <activity android:name=".view.GridLayout3"
    124                 android:label="@string/grid_layout_3">
    125             <intent-filter>
    126                 <action android:name="android.intent.action.MAIN" />
    127                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    128             </intent-filter>
    129         </activity>
    130 
    131         <!-- Action Bar Samples -->
    132         <activity android:name=".app.ActionBarMechanics"
    133                 android:label="@string/action_bar_mechanics"
    134                 android:theme="@style/Theme.AppCompat">
    135             <intent-filter>
    136                 <action android:name="android.intent.action.MAIN" />
    137                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    138             </intent-filter>
    139         </activity>
    140 
    141         <activity android:name=".app.SearchActivity">
    142             <intent-filter>
    143                 <action android:name="android.intent.action.SEARCH" />
    144             </intent-filter>
    145 
    146             <meta-data android:name="android.app.searchable"
    147                        android:resource="@xml/searchable" />
    148 
    149         </activity>
    150 
    151         <activity android:name=".app.ActionBarUsage"
    152                 android:label="@string/action_bar_usage"
    153                 android:theme="@style/Theme.AppCompat">
    154             <intent-filter>
    155                 <action android:name="android.intent.action.MAIN" />
    156                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    157             </intent-filter>
    158         </activity>
    159 
    160         <activity android:name=".app.ActionBarDisplayOptions"
    161                 android:label="@string/action_bar_display_options"
    162                 android:logo="@drawable/apidemo_androidlogo"
    163                 android:theme="@style/Theme.AppCompat">
    164             <intent-filter>
    165                 <action android:name="android.intent.action.MAIN" />
    166                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    167             </intent-filter>
    168         </activity>
    169 
    170         <activity android:name=".app.ActionBarTabs"
    171                 android:label="@string/action_bar_tabs"
    172                 android:theme="@style/Theme.Custom">
    173             <intent-filter>
    174                 <action android:name="android.intent.action.MAIN" />
    175                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    176             </intent-filter>
    177         </activity>
    178 
    179         <activity android:name=".app.ActionBarSettingsActionProviderActivity"
    180                 android:label="@string/action_bar_settings_action_provider"
    181                 android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
    182             <intent-filter>
    183                 <action android:name="android.intent.action.MAIN" />
    184                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    185             </intent-filter>
    186         </activity>
    187 
    188         <activity android:name=".app.ActionBarFragmentMenu"
    189                 android:label="@string/action_bar_fragment_menu"
    190                 android:theme="@style/Theme.AppCompat">
    191             <intent-filter>
    192                 <action android:name="android.intent.action.MAIN" />
    193                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    194             </intent-filter>
    195         </activity>
    196 
    197         <activity android:name=".app.ActionBarWithDrawerLayout"
    198                 android:label="@string/action_bar_with_navigation_drawer"
    199                 android:theme="@style/Theme.AppCompat"
    200                 >
    201             <intent-filter>
    202                 <action android:name="android.intent.action.MAIN"/>
    203                 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/>
    204             </intent-filter>
    205         </activity>
    206 
    207         <activity android:name=".app.ToolbarUsage"
    208                   android:label="@string/toolbar_usage"
    209                   android:theme="@style/Theme.Custom.NoActionBar">
    210             <intent-filter>
    211                 <action android:name="android.intent.action.MAIN" />
    212                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    213             </intent-filter>
    214 
    215             <meta-data
    216                     android:name="android.app.default_searchable"
    217                     android:value=".app.SearchActivity" />
    218         </activity>
    219 
    220         <activity android:name=".app.ToolbarDisplayOptions"
    221                   android:label="@string/toolbar_display_options"
    222                   android:theme="@style/Theme.AppCompat.Light.NoActionBar">
    223             <intent-filter>
    224                 <action android:name="android.intent.action.MAIN" />
    225                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    226             </intent-filter>
    227         </activity>
    228 
    229         <activity android:name=".app.ToolbarFragmentPagerMenu"
    230                   android:label="@string/toolbar_fragment_pager"
    231                   android:theme="@style/Theme.AppCompat.Light.NoActionBar">
    232             <intent-filter>
    233                 <action android:name="android.intent.action.MAIN" />
    234                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    235             </intent-filter>
    236         </activity>
    237 
    238         <provider android:name=".app.RecentSuggestionsProvider"
    239                   android:authorities="com.example.android.supportv7.RecentSuggestionsProvider" />
    240 
    241         <!-- RecyclerView samples -->
    242         <activity android:name=".widget.RecyclerViewActivity"
    243                   android:label="@string/recycler_view"
    244                   android:theme="@style/Theme.AppCompat">
    245             <intent-filter>
    246                 <action android:name="android.intent.action.MAIN" />
    247                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    248             </intent-filter>
    249         </activity>
    250 
    251         <activity android:name=".widget.AnimatedRecyclerView"
    252                   android:label="@string/animated_recycler_view"
    253                   android:theme="@style/Theme.AppCompat">
    254             <intent-filter>
    255                 <action android:name="android.intent.action.MAIN" />
    256                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    257             </intent-filter>
    258         </activity>
    259 
    260         <activity android:name=".widget.LinearLayoutManagerActivity"
    261                   android:label="@string/linear_layout_manager"
    262                   android:theme="@style/Theme.AppCompat">
    263             <intent-filter>
    264                 <action android:name="android.intent.action.MAIN" />
    265                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    266             </intent-filter>
    267         </activity>
    268 
    269         <activity android:name=".widget.GridLayoutManagerActivity"
    270                   android:label="@string/grid_layout_manager"
    271                   android:theme="@style/Theme.AppCompat">
    272             <intent-filter>
    273                 <action android:name="android.intent.action.MAIN" />
    274                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    275             </intent-filter>
    276         </activity>
    277 
    278         <activity android:name=".view.CardViewActivity"
    279                   android:label="@string/card_view"
    280                   android:theme="@style/Theme.AppCompat">
    281             <intent-filter>
    282                 <action android:name="android.intent.action.MAIN" />
    283                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    284             </intent-filter>
    285         </activity>
    286 
    287         <activity android:name=".graphics.PaletteActivity"
    288                   android:label="@string/palette"
    289                   android:theme="@style/Theme.AppCompat">
    290             <intent-filter>
    291                 <action android:name="android.intent.action.MAIN" />
    292                 <category android:name="com.example.android.supportv7.SAMPLE_CODE" />
    293             </intent-filter>
    294         </activity>
    295 
    296         <activity android:name=".graphics.PaletteDetailActivity"
    297                   android:label="@string/palette"
    298                   android:theme="@style/Theme.AppCompat" />
    299 
    300     </application>
    301 </manifest>
    302