Как убрать строку заголовка в андроид студии?
В моем приложении есть эта строка заголовка вверху, где будет меню переполнения, но мне не нужны настройки и есть только один экран. Когда я меняю тему, как описано во многих других вопросах, я получаю старую тему 2.2. Я хочу, чтобы современная тема была без бара наверху.
21 ответ
Перейдите в styles.xml и измените .DarkActionBar на .NoActionBar
Если цвета не имеют отношения к вашему приложению, вы действительно можете пойти на
В файле манифеста Change:
работает в onCreate() , когда помещается перед вызовом setContentView() .
в противном случае он выйдет из строя
В файле styles.xml измените DarkActionBar на NoActionBar
Это работало для меня в values/styles.xml добавлении элементов:
Это работает для меня
В файле манифеста измените на это:
- открыть styles.xml
- вставить
вы можете изменить name= «———«
find android: theme = «@style/AppTheme» изменить на android: theme = «@style/no_title»
нажмите кнопку «Тема» на панели меню (зеленый цвет рядом с MainActivity)
- нажмите кнопку «Проект»
- щелкните no_title (с правой стороны)
- нажмите «ОК»
удалить из Activity_main.xml следующее:
in onCreate() работает!
сделайте это в файле манифеста:
Это работает для меня, я надеюсь, что это работает и для вас
Самый простой способ: Просто дважды нажмите эту кнопку и выберите «NoTitleBar»;)
Просто используйте setTitle(null) выше
Название исчезнет, тогда вы можете использовать логотип по своему выбору.
Для начинающих, как я. Просто делай то, что я говорю. Из твоего Android Project.
app → res → values → style.xml
заменить этот код
Попробуйте изменить стили на NoActionBar, если это не сработает, добавьте этот код в основное занятие
Android Studio: App With No Title Bar
Removing the title bar in Android Studio from an app is relatively simple.
- You can preview different Android themes by clicking on the AppTheme button in Design view when looking at layouts.
Click on AppThemeButton
- Click on the AppTheme button, go to All, choose NoTitleBar, and click OK. This provides you with a preview of what you app will look like without a title bar.
Select ‘No Title Bar’ Theme

Preview of App With No Title Bar
- You can also preview your app in devices using different screen sizes, including tablets, by clicking on the phone icon and choosing the Preview All Screen Sizes options in Design view when looking at layouts. To preview the look of your app in landscape or portrait orientation, click on the orientation icon.

Click on Phone Icon and Choose Preview All Screen Sizes

Preview Your App in Landscape or Portrait Orientation
Keep in mind that changing the theme using the AppTheme button only provides a preview. You must change the theme inside the styles.xml file to make the change permanent (res folder -> values folder -> styles.xml file).
In the styles.xml file, change the theme to one with no title bar (add a period to the end of the theme name and you should see a pop up with various theme options; choose the .NoActionBar theme).

Change Theme in the styles.xml file
Как убрать название приложения android studio
Can someone please help me with the issue.I want my activity as full screen and want to remove title from the screen.I have tried several ways but not able to remove it.
I want to remove the title bar displayed in blue color .Please find the image for the reference :

![]()
8 Answers 8
you just add this style in your style.xml file which is in your values folder
After that set this style to your activity class in your AndroidManifest.xml file
Edit:- If you are going with programmatic way to hide ActionBar then use below code in your activity onCreate() method.
and if you want to hide ActionBar from Fragment then
AppCompat v7:- Use following theme in your Activities where you don’t want actiobBar Theme.AppComat.NoActionBar or Theme.AppCompat.Light.NoActionBar or if you want to hide in whole app then set this theme in your <application. /> in your AndroidManifest .
add this line of code in your onCreate() method or you can use above theme.
Как убрать название приложения android studio
Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.
What can I do to prevent this in the future?
If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.
If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.
Another way to prevent getting this page in the future is to use Privacy Pass. You may need to download version 2.0 now from the Chrome Web Store.
Cloudflare Ray ID: 71aba4c268b588a1 • Your IP : 82.102.23.104 • Performance & security by Cloudflare
How to remove title bar from the android activity?
Can someone please help me with the issue.I want my activity as full screen and want to remove title from the screen.I have tried several ways but not able to remove it.
I want to remove the title bar displayed in blue color .Please find the image for the reference :

![]()
8 Answers 8
you just add this style in your style.xml file which is in your values folder
After that set this style to your activity class in your AndroidManifest.xml file
Edit:- If you are going with programmatic way to hide ActionBar then use below code in your activity onCreate() method.
and if you want to hide ActionBar from Fragment then
AppCompat v7:- Use following theme in your Activities where you don’t want actiobBar Theme.AppComat.NoActionBar or Theme.AppCompat.Light.NoActionBar or if you want to hide in whole app then set this theme in your <application. /> in your AndroidManifest .
add this line of code in your onCreate() method or you can use above theme.