How do I remove the title bar in android studio?

后端 未结 24 1188
轮回少年
轮回少年 2020-12-04 08:03

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

24条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 08:51

    Just use setTitle(null) above

    toolbar = (Toolbar) findViewById(R.id.toolbar);
            setSupportActionBar(toolbar);
    

    The title will disappear then you can use the logo of your choice.....

提交回复
热议问题