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.
Как убрать название приложения 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
Как удалить строку заголовка в студии Android?
В моем приложении есть эта строка заголовка вверху, где будет меню переполнения, но мне не нужны настройки и есть только один экран. Когда я меняю тему, как описано во многих других вопросах, я получаю старую тему 2.2. Я хочу, чтобы современная тема была без бара наверху.
ОТВЕТЫ
Ответ 1
Перейдите в styles.xml и измените .DarkActionBar на .NoActionBar
Если цвета не имеют отношения к вашему приложению, вы действительно можете пойти на
Ответ 2
В файле манифеста Change:
Ответ 3
работает в onCreate() , когда помещается перед вызовом setContentView() .
в противном случае он выйдет из строя
Ответ 4
В файле styles.xml измените DarkActionBar на NoActionBar
Ответ 5
Ответ 6
В файле манифеста измените на это:
Ответ 7
Это работало для меня в values/styles.xml добавлении элементов:
Ответ 8
Это работает для меня
Ответ 9
- открыть styles.xml
- вставить
вы можете изменить name= «———«
find android: theme = «@style/AppTheme» изменить на android: theme = «@style/no_title»
нажмите кнопку «Тема» на панели меню (зеленый цвет рядом с MainActivity)
- нажмите кнопку «Проект»
- щелкните no_title (с правой стороны)
- нажмите «ОК»
Ответ 10
удалить из Activity_main.xml следующее:
Ответ 11
сделайте это в файле манифеста:
Ответ 12
in onCreate() работает!
Ответ 13
Это работает для меня, я надеюсь, что это работает и для вас
Ответ 14
Лучший способ — использовать функцию actionbar setTitle() , если вы хотите показать логотип или иметь некоторые другие вещи в вашем actionBar, но не хотите видеть имя приложения, напишите этот код в MainActivity.java или в любом месте, которое вы хотите скрыть title в onCreate :
Таким образом, ваше приложение не будет иметь причин для сбоя.
Ответ 15
Просто используйте setTitle(null) выше
Название исчезнет, тогда вы можете использовать логотип по своему выбору.
Ответ 16
Самый простой способ: Просто дважды нажмите эту кнопку и выберите «NoTitleBar»;)
Ответ 17
Попробуйте изменить стили на NoActionBar, если это не сработает, добавьте этот код в основное занятие
Ответ 18
Для начинающих, как я. Просто делай то, что я говорю. Из твоего Android Project.