qq_34613346 2019-05-05 13:04 采纳率: 11.1%
浏览 485
已结题

屏幕被SwipeCardsView卡片控件占满,而且卡片控件还没有显示完

图片说明
<?xml version="1.0" encoding="utf-8"?>
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
>

<ImageView
    android:id="@+id/ivstatebar"
    android:layout_width="match_parent"
    android:layout_height="25dp"
    android:background="@color/colorAccent" />

<RelativeLayout
    android:id="@+id/titlelayout"
    android:layout_width="match_parent"
    android:layout_height="@dimen/com_title_height"
    android:layout_below="@id/ivstatebar"
    android:orientation="vertical"
    android:background="@color/colorAccent">


    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true">

        <TextView
            android:id="@+id/title_left"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:text="语录"
            android:textColor="@color/ctv_black_2"
            android:background="@drawable/bg_btn_left_selected"
            android:textSize="18sp" />

        <TextView
            android:layout_width="1px"
            android:layout_height="match_parent"
            android:textColor="@color/ctv_white"/>

        <TextView
            android:id="@+id/title_right"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:text="党章"
            android:textColor="@color/ctv_white"
            android:background="@drawable/bg_btn_right_normal"
            android:textSize="18sp" />

    </LinearLayout>

</RelativeLayout>


<com.huxq17.swipecardsview.SwipeCardsView
    android:id="@+id/swipCardsView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:layout_below="@id/titlelayout"
    android:background="#f3f3f3"
    app:alphaOffsetStep="40"
    app:scaleOffsetStep="0.08"
    app:yOffsetStep="40dp"
    />

<!--<include-->
    <!--android:id="@+id/emptyview"-->
    <!--layout="@layout/com_view_empty"-->
    <!--android:layout_alignParentStart="true"-->
    <!--android:layout_alignParentTop="true" />-->


图片说明

  • 写回答

1条回答 默认 最新

  • dabocaiqq 2019-05-07 00:01
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog