I study on the sly Android, faced with a problem that I can not accurately describe.

In the main activation, there is one title and under it there is some other, yet unknown to me, line.

When you start the application, it is also drawn.

If you try to remove the header by specifying AppTheme.NoActionBar in the manifest, then only the line with Sample will be removed, and the bottom one will remain empty.

headline

Tell me, please, what is it and how to remove it?

    1 answer 1

    Most likely this is a Toolbar . If this is the case, since both of these widgets perform similar tasks, you need to make a difficult choice — use the ActionBar or Toolbar

    In the first case, you need to remove the Toolbar from the code and markup, in the second, use the theme without an ActionBar (with NoActionBar at the end of the theme), and assign the Toolbar to be the ActionBar function:

     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); //id тулбара в разметке setSupportActionBar(toolbar); 

    For my part, I note that Toolbar more flexible and controllable than ActionBar

    In any case, you should look at your markup for this activation and there you will see what it is. Nothing that you yourself did not put there, there can not be.