在将Viewpager包含在滑动面板中时遇到麻烦
<com.sothree.slidinguppanel.SlidingUpPanelLayout
xmlns:sothree="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
sothree:umanoPanelHeight="68dp"
sothree:umanoShadowHeight="4dp">
<include
layout="@layout/slidet"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<include
layout="@layout/activity_overlay_secondary"
android:layout_width="match_parent"
android:layout_height="match_parent" />
幻灯片布局在其中包含视图寻呼机,如下所示-
<android.support.design.widget.TabLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabGravity="fill"
app:tabMode="fixed"
android:id="@+id/tabMode"
app:tabIndicatorColor="@color/tabindicatorcolor"
android:background="@color/trans"
app:tabTextColor="@color/tabletextcolor"/>
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/viewpager">
</android.support.v4.view.ViewPager>
单独滑动效果很好,但是在滑动面板中却什么也没显示