0
我有一個佈局:設置水平滾動視圖佈局
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<GridView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview" android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/textView2"
android:layout_below="@+id/textView1" android:columnWidth="90dp"
android:gravity="center" android:horizontalSpacing="10dp"
android:numColumns="3" android:stretchMode="spacingWidth"
android:verticalSpacing="10dp" />
<TextView android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp" android:text="Level 1"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="20dp" android:text=""
android:textAppearance="?android:attr/textAppearanceLarge" />
</RelativeLayout>
所以我希望能有相同的佈局,當用戶滾動權。將會有不同的圖像gridview和textviews。然而即使我看了一些例子,我也無法做到。我試圖將其轉換爲線性佈局,但我再次無法創建scroolview。
換句話說,我有這樣一個佈局:
而且當用戶滾動,我想請有持有不同的圖像另一個GridView控件。當用戶滾動沒有改變,但只是圖像。任何幫助?
做什麼?我無法理解你實際想要問什麼。你可以編輯你的文章,幷包括你希望實現的圖像,以及你目前的另一個圖像嗎?也許有了這個,我們可以更好地瞭解你在問什麼。 – FoamyGuy 2013-03-11 18:22:29
我上傳了一張我目前佈局的圖片。 – ocry 2013-03-11 18:34:13
您的圖像不位於公共鏈接,我們無法看到它。 – FoamyGuy 2013-03-11 18:37:24