Android 如何使用左右滚动的滑动抽屉
我想实现左右滚动。 当用户在我的文本视图上的数组上执行左或右操作只是为了显示下一个或之前的销售。 我想我需要用这个滑动抽屉,但我不想用这个按钮。 如果你能发送一些代码,看看如何做到这一点,我会很高兴 这是我的代码:Android 如何使用左右滚动的滑动抽屉,android,slidingdrawer,Android,Slidingdrawer,我想实现左右滚动。 当用户在我的文本视图上的数组上执行左或右操作只是为了显示下一个或之前的销售。 我想我需要用这个滑动抽屉,但我不想用这个按钮。 如果你能发送一些代码,看看如何做到这一点,我会很高兴 这是我的代码: <?xml version="1.0" encoding="utf-8"?> <SlidingDrawer xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+i
<?xml version="1.0" encoding="utf-8"?>
<SlidingDrawer xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/SlidingDrawer"
android:layout_width="wrap_content"
android:layout_height="250dip"
android:content="@+id/contentLayout"
android:handle="@+id/slideButton"
android:orientation="vertical"
android:padding="10dip" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/pubdate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textSize="20sp"
android:textStyle="bold" />
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15sp"
android:textStyle="bold" />
</LinearLayout>
</SlidingDrawer>
非常简单,无需导入大量代码和图标。。。。 我喜欢的最简单的方式是: