저는 Android Studio를 사용하고 있으며 여기에서 사용 가능한 모든 질문과 답변을 검색하여 가능한 모든 것을 시도했습니다. 그러나 아무 것도 효과가 없었습니다. 도와주세요. 나는 안드로이드를 처음 접했고 배우기 매우 골동품.주 활동에서 제목 표시 줄을 숨기는 방법 : Android Studio를 사용하고 있습니다.
NoTitleBar.Fullscreen과 다른 테마를 사용하는 경우 :
여기 내 XML 코드입니다. 앱은에서 OnCreate()에서
<?xml version="1.0" encoding="utf-8"?>
을
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:theme="@style/AppTheme"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:persistent="true">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
활동 또는 행동 제한을 사용하고 있습니까? – Mahamadali
[이 링크]를보십시오 (http://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom- 테마) – user3678528