In my app there is this title bar at the top where the overflow menu would be, but I don't need settings and only have one screen. When I change the theme like described in many other questions I get the old 2.2 theme. I want to have the modern theme just without the bar at the top.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
This works for me i hope this work for you as well
Go to styles.xml and change
.DarkActionBar
for.NoActionBar
becomes
if colors are irrelevant to your app, you can actually go for
you can change name="---------"
open Androidmaifest.xm
find android:theme="@style/AppTheme" chang to android:theme="@style/no_title"
click select Theme on menubar (it's green color near MainActivity)
For Beginner Like Me. Just Do it what I say.From your Android Project.
app -> res -> values -> style.xml
replace this code
Enjoy.
To simply remove the title bar (which means the bar contains your app name) from an activity, I simply add below line to that activity in the
manifests\AndroidManifest.xml
:It should now look like below
Hope it'll be useful.
try: toolbar.setTitle(" ");