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 <!-- Permission for ACCESS_COARSE_LOCATION is required for DayNight themes. --> 35 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 36 37 <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21" /> 38 39 <!-- The smallest screen this app works on is a phone. The app will 40 scale its UI to larger screens but doesn't make good use of them 41 so allow the compatibility mode button to be shown (mostly because 42 this is just convenient for testing). --> 43 <supports-screens android:requiresSmallestWidthDp="320" 44 android:compatibleWidthLimitDp="480" /> 45 46 <application android:label="@string/activity_sample_code" 47 android:supportsRtl="true" 48 android:icon="@drawable/app_sample_code" 49 android:hardwareAccelerated="true"> 50 51 <activity android:name="Support7Demos"> 52 <intent-filter> 53 <action android:name="android.intent.action.MAIN" /> 54 <category android:name="android.intent.category.DEFAULT" /> 55 <category android:name="android.intent.category.LAUNCHER" /> 56 </intent-filter> 57 </activity> 58 <receiver android:name="com.example.android.supportv7.media.SampleMediaButtonReceiver"> 59 <intent-filter> 60 <action android:name="android.intent.action.MEDIA_BUTTON" /> 61 </intent-filter> 62 </receiver> 63 <!-- MediaRouter Support Samples --> 64 65 <activity android:name=".media.SampleMediaRouterActivity" 66 android:configChanges="orientation|screenSize" 67 android:label="@string/sample_media_router_activity_dark" 68 android:theme="@style/Theme.SampleMediaRouter"> 69 <intent-filter> 70 <action android:name="android.intent.action.MAIN" /> 71 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 72 </intent-filter> 73 </activity> 74 75 <activity android:name=".media.SampleMediaRouterActivity$Light" 76 android:configChanges="orientation|screenSize" 77 android:label="@string/sample_media_router_activity_light" 78 android:theme="@style/Theme.SampleMediaRouter.Light"> 79 <intent-filter> 80 <action android:name="android.intent.action.MAIN" /> 81 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 82 </intent-filter> 83 </activity> 84 85 <activity android:name=".media.SampleMediaRouterActivity$LightWithDarkActionBar" 86 android:configChanges="orientation|screenSize" 87 android:label="@string/sample_media_router_activity_light_with_dark_action_bar" 88 android:theme="@style/Theme.SampleMediaRouter.Light.DarkActionBar"> 89 <intent-filter> 90 <action android:name="android.intent.action.MAIN" /> 91 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 92 </intent-filter> 93 </activity> 94 95 <activity android:name=".media.SampleMediaRouteSettingsActivity" 96 android:label="@string/sample_media_route_settings_activity" 97 android:theme="@style/Theme.AppCompat.Light"> 98 <intent-filter> 99 <action android:name="android.intent.action.MAIN" /> 100 </intent-filter> 101 </activity> 102 103 <service android:name=".media.SampleMediaRouteProviderService" 104 android:label="@string/sample_media_route_provider_service" 105 android:process=":mrp"> 106 <intent-filter> 107 <action android:name="android.media.MediaRouteProviderService" /> 108 </intent-filter> 109 </service> 110 111 <!-- GridLayout Support Samples --> 112 113 <activity android:name=".view.GridLayout1" 114 android:label="@string/grid_layout_1"> 115 <intent-filter> 116 <action android:name="android.intent.action.MAIN" /> 117 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 118 </intent-filter> 119 </activity> 120 121 <activity android:name=".view.GridLayout2" 122 android:label="@string/grid_layout_2"> 123 <intent-filter> 124 <action android:name="android.intent.action.MAIN" /> 125 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 126 </intent-filter> 127 </activity> 128 129 <activity android:name=".view.GridLayout3" 130 android:label="@string/grid_layout_3"> 131 <intent-filter> 132 <action android:name="android.intent.action.MAIN" /> 133 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 134 </intent-filter> 135 </activity> 136 137 <!-- Action Bar Samples --> 138 <activity android:name=".app.ActionBarMechanics" 139 android:label="@string/action_bar_mechanics" 140 android:theme="@style/Theme.AppCompat"> 141 <intent-filter> 142 <action android:name="android.intent.action.MAIN" /> 143 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 144 </intent-filter> 145 </activity> 146 147 <activity android:name=".app.SearchActivity"> 148 <intent-filter> 149 <action android:name="android.intent.action.SEARCH" /> 150 </intent-filter> 151 152 <meta-data android:name="android.app.searchable" 153 android:resource="@xml/searchable" /> 154 155 </activity> 156 157 <activity android:name=".app.ActionBarUsage" 158 android:label="@string/action_bar_usage" 159 android:theme="@style/Theme.AppCompat"> 160 <intent-filter> 161 <action android:name="android.intent.action.MAIN" /> 162 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 163 </intent-filter> 164 </activity> 165 166 <activity android:name=".app.ActionBarDisplayOptions" 167 android:label="@string/action_bar_display_options" 168 android:logo="@drawable/apidemo_androidlogo" 169 android:theme="@style/Theme.AppCompat"> 170 <intent-filter> 171 <action android:name="android.intent.action.MAIN" /> 172 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 173 </intent-filter> 174 </activity> 175 176 <activity android:name=".app.ActionBarSettingsActionProviderActivity" 177 android:label="@string/action_bar_settings_action_provider" 178 android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> 179 <intent-filter> 180 <action android:name="android.intent.action.MAIN" /> 181 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 182 </intent-filter> 183 </activity> 184 185 <activity android:name=".app.ActionBarShareActionProvider" 186 android:label="@string/action_bar_share_action_provider" 187 android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> 188 <intent-filter> 189 <action android:name="android.intent.action.MAIN" /> 190 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 191 </intent-filter> 192 </activity> 193 194 <activity android:name=".app.ActionBarFragmentMenu" 195 android:label="@string/action_bar_fragment_menu" 196 android:theme="@style/Theme.AppCompat"> 197 <intent-filter> 198 <action android:name="android.intent.action.MAIN" /> 199 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 200 </intent-filter> 201 </activity> 202 203 <activity android:name=".app.ActionBarPreferences" 204 android:label="@string/action_bar_preferences" 205 android:theme="@style/Theme.AppCompat"> 206 <intent-filter> 207 <action android:name="android.intent.action.MAIN" /> 208 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 209 </intent-filter> 210 </activity> 211 212 <activity android:name=".app.ActionBarActionMode" 213 android:label="@string/action_bar_action_mode" 214 android:theme="@style/Theme.Custom"> 215 <intent-filter> 216 <action android:name="android.intent.action.MAIN" /> 217 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 218 </intent-filter> 219 </activity> 220 221 <activity android:name=".app.ActionBarHideOnScroll" 222 android:label="@string/action_bar_hide_scroll" 223 android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> 224 <intent-filter> 225 <action android:name="android.intent.action.MAIN" /> 226 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 227 </intent-filter> 228 </activity> 229 230 <activity android:name=".app.AppCompatWidgetsButtons" 231 android:label="@string/appcompat_widgets_buttons" 232 android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> 233 <intent-filter> 234 <action android:name="android.intent.action.MAIN" /> 235 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 236 </intent-filter> 237 </activity> 238 239 <activity android:name=".app.AppCompatWidgetsSpinners" 240 android:label="@string/appcompat_widgets_spinners" 241 android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> 242 <intent-filter> 243 <action android:name="android.intent.action.MAIN" /> 244 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 245 </intent-filter> 246 </activity> 247 248 <activity android:name=".app.AppCompatWidgetsTextInput" 249 android:label="@string/appcompat_widgets_text_input" 250 android:theme="@style/Theme.AppCompat.Light.DarkActionBar"> 251 <intent-filter> 252 <action android:name="android.intent.action.MAIN" /> 253 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 254 </intent-filter> 255 </activity> 256 257 <activity android:name=".app.AppCompatWidgetsTextViews" 258 android:label="@string/appcompat_widgets_text_views" 259 android:theme="@style/Theme.Custom.TextLink"> 260 <intent-filter> 261 <action android:name="android.intent.action.MAIN" /> 262 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 263 </intent-filter> 264 </activity> 265 266 <activity android:name=".app.MenuItemIconTinting" 267 android:label="@string/menu_item_icon_tinting" 268 android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 269 <intent-filter> 270 <action android:name="android.intent.action.MAIN" /> 271 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 272 </intent-filter> 273 </activity> 274 275 <activity android:name=".app.ToolbarUsage" 276 android:label="@string/toolbar_usage" 277 android:theme="@style/Theme.Custom.NoActionBar"> 278 <intent-filter> 279 <action android:name="android.intent.action.MAIN" /> 280 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 281 </intent-filter> 282 283 <meta-data 284 android:name="android.app.default_searchable" 285 android:value=".app.SearchActivity" /> 286 </activity> 287 288 <activity android:name=".app.ToolbarDisplayOptions" 289 android:label="@string/toolbar_display_options" 290 android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 291 <intent-filter> 292 <action android:name="android.intent.action.MAIN" /> 293 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 294 </intent-filter> 295 </activity> 296 297 <activity android:name=".app.ToolbarFragmentPagerMenu" 298 android:label="@string/toolbar_fragment_pager" 299 android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 300 <intent-filter> 301 <action android:name="android.intent.action.MAIN" /> 302 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 303 </intent-filter> 304 </activity> 305 306 <activity android:name=".app.ToolbarActionMode" 307 android:label="@string/toolbar_action_mode" 308 android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 309 <intent-filter> 310 <action android:name="android.intent.action.MAIN" /> 311 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 312 </intent-filter> 313 </activity> 314 315 <activity android:name=".app.DialogUsage" 316 android:label="@string/dialog_usage" 317 android:theme="@style/Theme.AppCompat.Light"> 318 <intent-filter> 319 <action android:name="android.intent.action.MAIN" /> 320 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 321 </intent-filter> 322 </activity> 323 324 <activity android:name=".app.AlertDialogUsage" 325 android:label="@string/alert_dialog_usage" 326 android:theme="@style/Theme.AppCompat.Light"> 327 <intent-filter> 328 <action android:name="android.intent.action.MAIN" /> 329 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 330 </intent-filter> 331 </activity> 332 333 <activity android:name=".app.DialogFragmentUsage" 334 android:label="@string/dialogfragment_usage" 335 android:theme="@style/Theme.AppCompat.Light"> 336 <intent-filter> 337 <action android:name="android.intent.action.MAIN" /> 338 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 339 </intent-filter> 340 </activity> 341 342 <activity android:name=".app.AppCompatNightModeActivity" 343 android:label="@string/mode_night_activity_title" 344 android:theme="@style/Theme.AppCompat.DayNight"> 345 <intent-filter> 346 <action android:name="android.intent.action.MAIN" /> 347 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 348 </intent-filter> 349 </activity> 350 351 <activity android:name=".app.AppCompatNightModeDialog" 352 android:label="@string/mode_night_dialog_title" 353 android:theme="@style/Theme.AppCompat"> 354 <intent-filter> 355 <action android:name="android.intent.action.MAIN" /> 356 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 357 </intent-filter> 358 </activity> 359 360 <activity android:name=".app.AppCompatNightModeAlertDialog" 361 android:label="@string/mode_night_alertdialog_title" 362 android:theme="@style/Theme.AppCompat"> 363 <intent-filter> 364 <action android:name="android.intent.action.MAIN" /> 365 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 366 </intent-filter> 367 </activity> 368 369 <activity android:name=".app.AppCompatAnimatedVector" 370 android:label="@string/appcompat_vector_title" 371 android:theme="@style/Theme.AppCompat.Light"> 372 <intent-filter> 373 <action android:name="android.intent.action.MAIN" /> 374 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 375 </intent-filter> 376 </activity> 377 378 <provider android:name=".app.RecentSuggestionsProvider" 379 android:authorities="com.example.android.supportv7.RecentSuggestionsProvider" /> 380 381 <!-- RecyclerView samples --> 382 <activity android:name=".widget.RecyclerViewActivity" 383 android:label="@string/recycler_view" 384 android:theme="@style/Theme.AppCompat"> 385 <intent-filter> 386 <action android:name="android.intent.action.MAIN" /> 387 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 388 </intent-filter> 389 </activity> 390 391 <activity android:name=".widget.PagerRecyclerViewActivity" 392 android:label="@string/pager_recycler_view" 393 android:theme="@style/Theme.AppCompat"> 394 <intent-filter> 395 <action android:name="android.intent.action.MAIN" /> 396 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 397 </intent-filter> 398 </activity> 399 400 <activity android:name=".widget.AnimatedRecyclerView" 401 android:label="@string/animated_recycler_view" 402 android:theme="@style/Theme.AppCompat"> 403 <intent-filter> 404 <action android:name="android.intent.action.MAIN" /> 405 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 406 </intent-filter> 407 </activity> 408 409 <activity android:name=".widget.NestedRecyclerViewActivity" 410 android:label="@string/nested_recycler_view" 411 android:theme="@style/Theme.AppCompat"> 412 <intent-filter> 413 <action android:name="android.intent.action.MAIN" /> 414 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 415 </intent-filter> 416 </activity> 417 418 <activity android:name=".widget.LinearLayoutManagerActivity" 419 android:label="@string/linear_layout_manager" 420 android:theme="@style/Theme.AppCompat"> 421 <intent-filter> 422 <action android:name="android.intent.action.MAIN" /> 423 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 424 </intent-filter> 425 </activity> 426 427 <activity android:name=".widget.LinearLayoutManagerJankActivity" 428 android:label="@string/linear_layout_manager_jank" 429 android:theme="@style/Theme.AppCompat"> 430 <intent-filter> 431 <action android:name="android.intent.action.MAIN" /> 432 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 433 </intent-filter> 434 </activity> 435 436 <activity android:name=".util.SortedListActivity" 437 android:label="@string/sorted_list_activity" 438 android:windowSoftInputMode="adjustResize" 439 android:theme="@style/Theme.AppCompat"> 440 <intent-filter> 441 <action android:name="android.intent.action.MAIN" /> 442 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 443 </intent-filter> 444 </activity> 445 446 <activity android:name=".widget.StableIdActivity" 447 android:label="@string/recycler_view" 448 android:theme="@style/Theme.AppCompat"> 449 <intent-filter> 450 <action android:name="android.intent.action.MAIN" /> 451 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 452 </intent-filter> 453 </activity> 454 455 <activity android:name=".util.DiffUtilActivity" 456 android:label="@string/diff_util_activity" 457 android:theme="@style/Theme.AppCompat"> 458 <intent-filter> 459 <action android:name="android.intent.action.MAIN" /> 460 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 461 </intent-filter> 462 </activity> 463 464 <activity android:name=".widget.GridLayoutManagerActivity" 465 android:label="@string/grid_layout_manager" 466 android:theme="@style/Theme.AppCompat"> 467 <intent-filter> 468 <action android:name="android.intent.action.MAIN" /> 469 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 470 </intent-filter> 471 </activity> 472 473 <activity android:name=".widget.StaggeredGridLayoutManagerActivity" 474 android:label="@string/staggered_grid_layout_manager" 475 android:theme="@style/Theme.AppCompat"> 476 <intent-filter> 477 <action android:name="android.intent.action.MAIN" /> 478 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 479 </intent-filter> 480 </activity> 481 482 <activity android:name=".widget.AsyncListUtilActivity" 483 android:label="@string/async_list_util" 484 android:theme="@style/Theme.AppCompat"> 485 <intent-filter> 486 <action android:name="android.intent.action.MAIN" /> 487 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 488 </intent-filter> 489 </activity> 490 491 <activity android:name=".view.CardViewActivity" 492 android:label="@string/card_view" 493 android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 494 <intent-filter> 495 <action android:name="android.intent.action.MAIN" /> 496 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 497 </intent-filter> 498 </activity> 499 500 <activity android:name=".graphics.PaletteActivity" 501 android:label="@string/palette" 502 android:theme="@style/Theme.AppCompat"> 503 <intent-filter> 504 <action android:name="android.intent.action.MAIN" /> 505 <category android:name="com.example.android.supportv7.SAMPLE_CODE" /> 506 </intent-filter> 507 </activity> 508 509 <activity android:name=".graphics.PaletteDetailActivity" 510 android:label="@string/palette" 511 android:theme="@style/Theme.AppCompat" /> 512 513 <!-- item touch helper demo activities--> 514 <activity android:name=".widget.touch.SwipeToDismissActivity" 515 android:label="@string/swipe_to_dismiss_activity"> 516 <intent-filter> 517 <action android:name="android.intent.action.MAIN"/> 518 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/> 519 </intent-filter> 520 </activity> 521 <activity android:name=".widget.touch.DragAndDropActivity" 522 android:label="@string/drag_and_drop_activity"> 523 <intent-filter> 524 <action android:name="android.intent.action.MAIN"/> 525 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/> 526 </intent-filter> 527 </activity> 528 529 <!-- DrawerLayout demo activity --> 530 <activity android:name=".widget.DrawerLayoutActivity" 531 android:label="@string/drawer_layout_activity" 532 android:theme="@style/Theme.SampleDrawerLayout"> 533 <intent-filter> 534 <action android:name="android.intent.action.MAIN"/> 535 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/> 536 </intent-filter> 537 </activity> 538 539 <!-- ListPopupWindow demo activity --> 540 <activity android:name=".widget.ListPopupWindowActivity" 541 android:label="@string/list_popup_window_activity" 542 android:theme="@style/Theme.AppCompat.Light"> 543 <intent-filter> 544 <action android:name="android.intent.action.MAIN"/> 545 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/> 546 </intent-filter> 547 </activity> 548 549 <!-- PopupMenu demo activity --> 550 <activity android:name=".widget.PopupMenuActivity" 551 android:label="@string/popup_menu_activity" 552 android:theme="@style/Theme.AppCompat.Light"> 553 <intent-filter> 554 <action android:name="android.intent.action.MAIN"/> 555 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/> 556 </intent-filter> 557 </activity> 558 559 <!-- ListView styling activity --> 560 <activity android:name=".widget.ListViewActivity" 561 android:label="@string/list_view_activity" 562 android:theme="@style/Theme.AppCompat.Light"> 563 <intent-filter> 564 <action android:name="android.intent.action.MAIN"/> 565 <category android:name="com.example.android.supportv7.SAMPLE_CODE"/> 566 </intent-filter> 567 </activity> 568 </application> 569 570 571 </manifest> 572