有时候需求中需要竖展示信息, 显然listView实现比较麻烦。所以将目光转移到gallery,希望gallery能解决这样蛋疼的需求问题。如果可行,同时也不用去专门针对事件监听器重写, 使用现成的就可以 。
代码附上 , 写了一个简单的demo。
main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/zbgimg"
>
<Gallery android:id="@+id/mGallery" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
</LinearLayout>
在这里写了另外一个xml。 verify_table_two.xml
<?xml version="1.0" encoding="utf-8"?>
<Linea