Vote count:
0
in my activity i have 2 gridView. This gridView are in 2 different column. That i want to do is anchor the gridView so when i scroll( or click) in one of the two, the same happens in the other.
This is my xml layout code:
<RelativeLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.oldmount.fba.MyRoster">
<LinearLayout
android:id="@+id/prova"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:text="SELEZIONA LA TUA ROSA!"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_below="@id/prova">
<GridView xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/cardsGridView"
android:numColumns="1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5"/>
<GridView xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/checkBoxGridView"
android:numColumns="1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.5"/>
</LinearLayout>
Any help is appreciated.
asked 20 secs ago
How to anchor two GridView
Aucun commentaire:
Enregistrer un commentaire