I searched for some solutions and tried a lot of them, but didn't get the correct answer.
<activity
android:name=".MainActivity" />
<activity
android:name=".LoginActivity"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MenuActivity"
android:label="@string/title_activity_menu"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".ListadoActivity"></activity>
I want to hide the TitleBar in every activity except the MenuActity (because it's a navigation view). Now LoginActivity and MenuActivity are fine, but the rest are not.
Is there any problem for the navigation view? Thank you
Edit: I did the answer cuz I tried every solution that I found here (create a new style, by code, in a single activity, for the whole application, but in every case, my app crash). So I guess the problem is that I created MenuActivity with NavigationView template.