0

Wie kann ich Anfangs- und Endrand von der Symbolleiste entfernen?Unbekannter Symbolleistenrand bei Verwendung der Designbibliothek android

enter image description here

Unten ist mein xml:

<?xml version="1.0" encoding="utf-8"?> 
<android.support.design.widget.CoordinatorLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:fitsSystemWindows="true" 
    tools:context="com.test.activities.topup.CreditCardDetailsVerification"> 

<android.support.design.widget.AppBarLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:theme="@style/AppTheme.AppBarOverlay"> 

    <android.support.v7.widget.Toolbar 
     android:id="@+id/toolbar" 
     android:layout_width="match_parent" 
     android:layout_height="?attr/actionBarSize" 
     app:popupTheme="@style/AppTheme.PopupOverlay"/> 

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

<include layout="@layout/content_credit_card_details_verification"/> 

style.xml

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> 
    <item name="android:background">@android:color/transparent</item> 
</style> 

sty le.xml (v21)

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> 
    <item name="android:background">@android:color/transparent</item> 
    <item name="android:backgroundTint">@android:color/transparent</item> 
</style> 
+0

versuchen diese Eigenschaft App: contentInsetStart = "0DP" App: contentInsetEnd = "0DP" –

+0

die AppTheme.AppBarOverlay überprüfen. Meine beste Vermutung, dass Sie es versehentlich in die styles.xml gesetzt haben Überprüfen Sie alle styles.xml (v21, etc) –

+0

@DivyangPanchal - funktioniert nicht –

Antwort

0

ich es herausgefunden. Es war <item name="android:backgroundTint">@android:color/transparent</item>, die dieses Problem verursacht. Ich habe es entfernt und Rand von Anfang und Ende der Symbolleiste wird ebenfalls entfernt.