在我的android应用程序中,页面顶部和下方有一个幻灯片显示,其中有一个回收站视图,我的问题是如何以一种可以在回收站视图中滚动显示幻灯片的方式将幻灯片添加到回收站视图上方。 / p>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@drawable/pattern"
android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".MainActivity"
tools:showIn="@layout/app_bar_main">
<ImageView
android:layout_width="match_parent"
android:layout_height="200dp"
android:src="@drawable/line" />
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/main_swipe"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/rc"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
答案 0 :(得分:0)
在我的android应用程序中,页面顶部和下方有一个幻灯片,其中有一个回收站视图,我的问题是如何在回收站视图上方添加幻灯片,以便可以使用回收站视图滚动幻灯片。
这是UI