1

我正在尝试使用 wunderlist 的滑动层库,但是我遇到了一个问题,即滑入的层不覆盖主要内容层。我错过了什么来解决这个问题吗?在此处输入图像描述

以下是我的代码:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"             android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.nanopay.loyalty_app_android.Activities.TempActivity">


<com.wunderlist.slidinglayer.SlidingLayer
    xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
    android:id="@+id/slidingLayer1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    slidingLayer:stickTo="left"
    slidingLayer:changeStateOnTap="true"
    slidingLayer:shadowSize="8dp"
    >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#14ad8f">

      .......

    </RelativeLayout>

</com.wunderlist.slidinglayer.SlidingLayer>

<Button
    android:id="@+id/buttonOpen"
    android:text="Open"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="88dp" />

<TabHost
    android:id="@+id/tabHost"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:layout_width="wrap_content">

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

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:textSize="25sp">

        </TabWidget>

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <LinearLayout
                android:id="@+id/OFFERS"
                android:layout_width="match_parent"
                android:layout_height="201dp"
                android:orientation="vertical">
                <android.support.v4.view.ViewPager
                    android:id="@+id/awesomepager"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" >

                </android.support.v4.view.ViewPager>

            </LinearLayout>

            <LinearLayout
                android:id="@+id/PAYMENT"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <android.support.v4.view.ViewPager
                    android:id="@+id/awesomepager1"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" >

                </android.support.v4.view.ViewPager>

            </LinearLayout>

        </FrameLayout>
    </LinearLayout>
</TabHost>




</RelativeLayout>
4

1 回答 1

0

尝试设置背景颜色com.wunderlist.slidinglayer.SlidingLayer

于 2015-08-12T19:01:29.583 回答