左边向右滑发时候滑楚菜单,可上下滚动,有可以实现点击事件。
1.自定义list_content,xml当侧滑菜单.
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="220dp"
android:layout_height="50dp"
android:orientation="horizontal">
<ImageView
android:layout_width="40dp"
android:layout_height="50dp"
android:background="@mipmap/ic_launcher"
/>
<TextView
android:id="@+id/text1"
android:onClick="text1"
android:clickable="true"
android:layout_width="220dp"
android:layout_height="50dp"
android:text="焦点"
android:textSize="30sp"
android:textColor="#000000"
android:layout_gravity="center_horizontal"
android:gravity="center"
/>
</LinearLayout>
<LinearLayout
android:layout_width="220dp"
android:layout_height="50dp"
android:orientation="horizontal">
<ImageView
android:layout_width=&