[英]Unwanted Padding Under Action Bar
因此,我正在使用此庫BottomBar在應用程序頂部顯示工具欄視圖。 如下圖所示,在動作欄和底部欄之間出現了一個奇怪的填充(忽略浮動動作按鈕): 。
這是我的布局xml文件:
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
app:bb_behavior="shifting"
app:bb_activeTabColor="#000000"
app:bb_inActiveTabColor="#FFFFFF"
app:bb_tabXmlResource="@xml/bottom_bar" />
<android.support.v7.widget.RecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/movie_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="60dp"/>
<android.support.design.widget.FloatingActionButton
android:layout_margin="18dp"
android:id="@+id/fab"
android:src="@drawable/create"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_marginBottom="60dp"
android:layout_height="wrap_content"
app:backgroundTint="#A52A2A"
app:borderWidth="0dp"
app:elevation="8dp"
app:layout_anchor="@id/movie_recycler_view"
app:layout_anchorGravity="bottom|right|end" />
我嘗試將操作欄填充設置為0dp,將底部標准填充0dp設置為無效,禁用操作欄陰影等。 有想法該怎么解決這個嗎?
好的,我已經找到了解決方案。 是圖書館的錯。
基本上,該庫需要一個特殊參數: app:bb_showShadow="false"
以禁用陰影。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.