Android display test-cancel the test app top name

Question: During the development process, the app name is always displayed on the top of the APP, which is very ugly. I want to cancel the name of the top of the software

Disclaimer: This article is written to help me record some solutions to problems in the learning process, I am afraid I will forget in the future (this article refers to intoSunshine: https://blog.csdn.net/shaochen2015821426/article/details/79059099?utm_medium= distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight)

1. Effect preview

Figure 1 Interface before modification
Figure 2 Modified interface

2. Operation process

1. Open the AndroidManifest.xml file
Manifests —> AndroidManifest.xml
2. Find the android:theme="@style/AppTheme" below. Hold down ctrl, click
Selected location in the figure Insert picture description here
3. Modify the selected code in the figure
Modify the selected code: "DarkActionBar" —> "NoActionBar"; you can remove the name display at the top of the APP
Insert picture description here

Completion:

Here we are not completely immersive settings (immersive settings, need to be achieved through code, you can hide some effects such as status bar, navigation bar. This can make the effect of the interface more clean and tidy).
ps: We just don't show it here, it's just an ugly title bar.
If you use it later, I'll write it down

Guess you like

Origin blog.csdn.net/weixin_45682496/article/details/108781779