Skip to content

Most visited

Recently visited

navigation
ActionBarCompat-Styled /

AndroidManifest.xml

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
 Copyright 2013 The Android Open Source Project
4
 
5
 Licensed under the Apache License, Version 2.0 (the "License");
6
 you may not use this file except in compliance with the License.
7
 You may obtain a copy of the License at
8
 
9
     http://www.apache.org/licenses/LICENSE-2.0
10
 
11
 Unless required by applicable law or agreed to in writing, software
12
 distributed under the License is distributed on an "AS IS" BASIS,
13
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 See the License for the specific language governing permissions and
15
 limitations under the License.
16
-->
17
 
18
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19
    package="com.example.android.actionbarcompat.styled"
20
    android:versionCode="1"
21
    android:versionName="1.0" >
22
 
23
    <!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->
24
 
25
    <!--
26
        Theme is set on the application so that our custom theme is used by
27
        default by all Activities
28
    -->
29
    <application
30
        android:icon="@drawable/ic_launcher"
31
        android:label="@string/app_name"
32
        android:theme="@style/Theme.Styled" >
33
 
34
        <activity android:name=".MainActivity">
35
 
36
            <!-- Launcher Intent filter -->
37
            <intent-filter>
38
                <action android:name="android.intent.action.MAIN" />
39
                <category android:name="android.intent.category.LAUNCHER" />
40
            </intent-filter>
41
 
42
            <!--
43
                In this example set the Activity to have a split action bar when the device's
44
                display is narrow. In ActionBarCompat this is done by setting the
45
                'android.support.UI_OPTIONS' metadata field to 'splitActionBarWhenNarrow'.
46
            -->
47
            <meta-data
48
                android:name="android.support.UI_OPTIONS"
49
                android:value="splitActionBarWhenNarrow" />
50
 
51
        </activity>
52
    </application>
53
 
54
</manifest>
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.