0
Wie kann ich Anfangs- und Endrand von der Symbolleiste entfernen?Unbekannter Symbolleistenrand bei Verwendung der Designbibliothek android
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>
versuchen diese Eigenschaft App: contentInsetStart = "0DP" App: contentInsetEnd = "0DP" –
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) –
@DivyangPanchal - funktioniert nicht –