java – How to remove the action bar and the shadow under it, but leave the ellipsis

Question:

Tell me how you can remove the text in the Action bar, but leave the settings button. I tried to change the color of the text in the Action bar, but the color of the text in the settings menu also changes. And also tell me how to remove the shadow under the action bar. Maybe the questions are easy, but I haven’t found the answer.

Answer:

Just give an empty header:

getSupportActionBar().setTitle("");

Remove the shadow like this:

getSupportActionBar().setElevation(0);
Scroll to Top