Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Android: ActionBar Titel Leiste einstellen

26.09.2018 (👁3722)


Wo kann man die blaue Titel-Leiste bei Android Apps einstellen?

Wenn man in Android Studio eine App erstellt, dann erscheint automatisch in dem Kopfbereich jeder Activity Seite ein blauer Header-Bereich mit dem App-Titel.

Lösung

Die Einstellung der sogenannten ActionBar wird unter der Datei AndroidManifest.xml eingestellt.

Hier muss man den Eintrag bei android:theme ändern. (Intellisense)

Standard App

android:theme="@style/AppTheme"

android:theme="@style/Theme.AppCompat.Light.NoActionBar"

App/manifests/

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   
package="com.codedocu.calendarapp">

    <
application
       
android:allowBackup="true"
       
android:icon="@mipmap/ic_launcher"
       
android:label="@string/app_name"
       
android:roundIcon="@mipmap/ic_launcher_round"
       
android:supportsRtl="true"
       
android:theme="@style/AppTheme">
        <
activity android:name=".CalendarActivity">
            <
intent-filter>
                <
action android:name="android.intent.action.MAIN" />

                <
category android:name="android.intent.category.LAUNCHER" />
            </
intent-filter>
        </
activity>
    </
application>

</
manifest>