yuyakaido / CardStackView:CardStackView下面的额外空间

时间:2019-09-21 16:54:38

标签: android layout

当我每次使用CardStackView时,都会在CardStackView下方获得其他空格。似乎不是空白或填充。

<ScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:background="@color/colorDeadBackground"
    android:fillViewport="true">

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

    <com.yuyakaido.android.cardstackview.CardStackView
        android:id="@+id/card_stack_view_zoom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="0dp"
        android:clipToPadding="false"
        />

    <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/back_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/double_arrow"
            app:backgroundTint="@color/colorPrimary"
            app:fabSize="auto"
            app:rippleColor="#22ED7563"
            android:layout_gravity="end"
            android:layout_margin="3dp"
            app:useCompatPadding="true"
            android:padding="0dp"/>

    <TextView
        android:layout_gravity="bottom"
        android:id="@+id/name"
        android:textSize="30sp"
        android:padding="20sp"
        android:textColor="@color/colorBlack"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

[...]

空格位于CardStackViewFAB之间。

AndroidX可能有问题吗?

我尝试将padding和margin设置为0,但没有效果。

0 个答案:

没有答案