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