Android 如何在两个图像之间滑动和切换?
在顶部,我有本地汽车牌照图像与编辑文本内 我需要向左或向右滑动,并将本地车牌图像切换到全局车牌(新)图像,以输入限制较小的值 以下所有其他信息应保留,不要移动 请推荐我如何在Android中做到这一点 使用Android 如何在两个图像之间滑动和切换?,android,image,swipe,Android,Image,Swipe,在顶部,我有本地汽车牌照图像与编辑文本内 我需要向左或向右滑动,并将本地车牌图像切换到全局车牌(新)图像,以输入限制较小的值 以下所有其他信息应保留,不要移动 请推荐我如何在Android中做到这一点 使用 您可以使用gestureoverlayview处理触摸和刷卡检测。请参阅本网站 。检查照片视图,看看这个。我试过查看寻呼机,它可以很好地处理图像。但我不能在布局之间切换,因为我需要图像和文本。 <RelativeLayout android:background="#0000FF
您可以使用gestureoverlayview处理触摸和刷卡检测。请参阅本网站
。检查照片视图,看看这个。我试过查看寻呼机,它可以很好地处理图像。但我不能在布局之间切换,因为我需要图像和文本。
<RelativeLayout
android:background="#0000FF"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/img1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:src="@drawable/smile" />
<TextView
android:text="Loading..."
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="20dp"
android:textColor="#FFFFFF"
android:layout_centerHorizontal="true"
android:layout_below="@+id/progressbar" />
</RelativeLayout>
<RelativeLayout
android:background="#FFFF00"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:text="Finished!"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="20dp"
android:textColor="#000000"
android:layout_marginTop="10dp"
android:layout_centerHorizontal="true" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/img1"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:src="@drawable/smile" />
</RelativeLayout>