How can I remove the border around the toolbar?


Axl

In my app I'm using the toolbar and it seems I want to get rid of the border around it:enter image description here

Then I create it like this:

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/transparent">

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:layout_gravity="center"
        android:minHeight="?attr/actionBarSize"/>

    </android.support.design.widget.AppBarLayout>

</android.support.design.widget.CoordinatorLayout>

I use it like this:

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <include
        layout="@layout/app_bar_main_light"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
</LinearLayout>

And I never found a property or style that specifies what this border is.

Location

I tried it without AppBarLayout and it works fine. Don't use AppBarLayout, just use Toolbar as is.

Related


How can I remove the border around the toolbar?

Axl In my app I'm using the toolbar and it seems I want to get rid of the border around it: Then I create it like this: <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:bac

How can I remove the border around the toolbar?

Axl In my app I'm using the toolbar and it seems I want to get rid of the border around it: Then I create it like this: <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:bac

How can I remove the border around the image?

username How can I remove the border around the square? Exterior: my HTML: <input id="black" type="image" src="html5-canvas-drawing-app/images/color-swatch-brown.png" onClick="changeColorBlack()"> my css: #black{ border:none; outline:none; background:none; pa

How can I remove the light grey border around the Canvas widget?

Rectangle Rectangle: I've been messing around with Tkinter Canvaswidgets to see if I can make some nice looking widgets, and I have a few questions. First of all, why is there a light grey border around my Canvas widget and how do I get rid of it? Second, why

How can I remove the border around each div?

ganhy99 I'm creating a sketch tool that allows the user to color "cells" after hovering over them. The problem I'm facing right now is that each cell has a white border around it, which I can't seem to remove. I've tried making border: none; border-style:none;

How can I remove the light grey border around the Canvas widget?

Rectangle Rectangle: I've been messing around with Tkinter Canvaswidgets to see if I can make some nice looking widgets, and I have a few questions. First of all, why is there a light grey border around my Canvas widget and how do I get rid of it? Second, why

How can I add a border around the canvas?

Thomas I am now wondering how to add a border around the canvas . So just use CSS code border:black 3px solid; You will get the border in the canvas . And I don't want the border on the canvas. I want a border around the canvas . I want to use CSS. thanks for

How can I add a border around the canvas?

Thomas I am now wondering how to add a border around the canvas . So just use CSS code border:black 3px solid; You will get the border in the canvas . And I don't want the border on the canvas. I want a border around the canvas . I want to use CSS. thanks for

How can I add a border around the canvas?

Thomas I am now wondering how to add a border around the canvas . So just use CSS code border:black 3px solid; You will get border in canvas . And I don't want the border on the canvas. I want a border around the canvas . I want to use CSS. thanks for your he

How can I add a border around the canvas?

Thomas I am now wondering how to add a border around the canvas . So just use CSS code border:black 3px solid; You will get border in canvas . And I don't want the border on the canvas. I want a border around the canvas . I want to use CSS. thanks for your he

How can I remove the border?

username Please help to solve the problem. HTML: <img class="logo_pic img-responsive" src="images/logo.png" alt="logo" usemap="#link_index" /> <map name="link_index"> <area shape="rect" coords="1,1,400,480" href="index.html" alt="" /> </map> The proble

How to remove border on ionic toolbar?

Juanfri Lira I need help removing borders ion-toolbarfrom ion-headerMedium Ionic V4 (4.0.9). My goal is to remove this: In my code I have ion-headertwo ion-toolbar. I have tried all the properties in and .no-borderion-headerion-toolbar I've also tried adding t

How to remove border on ionic toolbar?

Juanfri Lira I need help removing borders ion-toolbarfrom ion-headerMedium Ionic V4 (4.0.9). My goal is to remove this: In my code I have ion-headertwo ion-toolbar. I have tried all the properties in and .no-borderion-headerion-toolbar I've also tried adding t

How to remove the image around the border

Edwin So I have a question. I used sprites for the first time and now borders appear around them, I tried setting border: none, but it didn't work. demo <div class="service"> <img href="image/icons.png" style="background-image:url('image/icons.png'); backgroun

How to remove border around BottomNavigationView

Octavyanti Pilia Elvina Palopi How can I remove the border in BottomNavigationView as shown below. My layout: bottom_nav_activity.xml <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.andr

How to remove the image around the border

Edwin So I have a question. I used sprites for the first time and now borders appear around them, I tried setting border: none, but it didn't work. demo <div class="service"> <img href="image/icons.png" style="background-image:url('image/icons.png'); backgroun

How do I remove the border around a Graphviz graph file?

Saru Lindske Whenever I create a graphic and render it as PNG or PDF, I have a border around my image. Here is the simplified dot code: digraph graphname { graph [fontname = "Arial", fontsize=16, bgcolor=3, style=rounded, colorscheme=set39, labelloc=t, ran

How can I remove the space around the SVG?

awkward sight I know there are many posts related to this, I have checked all of them but couldn't find a proper solution for my problem, that's why I am posting this question. I have an SVG like this: As you can see, this SVG has no spaces on the top left and

How can I remove the space around the SVG?

awkward sight I know there are many posts related to this, I have checked all of them but couldn't find a proper solution for my problem, that's why I am posting this question. I have an SVG like this: As you can see, this SVG has no spaces on the top left and

How can I remove the space around the SVG?

awkward sight I know there are many posts related to this, I have checked all of them but couldn't find a proper solution for my problem, that's why I am posting this question. I have an SVG like this: As you can see, this SVG has no spaces on the top left and

How can I remove the space around the SVG?

awkward sight I know there are many posts related to this, I have checked all of them but couldn't find a proper solution for my problem, that's why I am posting this question. I have an SVG like this: As you can see, this SVG has no spaces on the top left and

How can I remove the space around the SVG?

awkward sight I know there are many posts related to this, I have checked all of them but couldn't find a proper solution for my problem, that's why I am posting this question. I have an SVG like this: As you can see, this SVG has no spaces on the top left and