Witam
Robie sobie prostą aplikacje i chce aby w jednym widoku była taka "tabelka" z 25 imageView (5x5) i mam pytanie jak to w miare prosty sposób zrobić. Pisać kolejno na tej zasadzie?
<ImageView
android:id="@+id/pole3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="42dp"
android:src="@drawable/wolne" />
<ImageView
android:id="@+id/pole8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/pole3"
android:layout_below="@+id/pole3"
android:src="@drawable/wolne" />
<ImageView
android:id="@+id/pole13"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/pole8"
android:layout_below="@+id/pole8"
android:src="@drawable/wolne" />
Wydaje mi to sie bez sensu dlatego zwracam sie z pytaniem jak prosciej? ;)
I potem jak z poziomu kodu to ładnie obsłużyć? Chciałbym kazdemu dodać taki sam listener wiec logiczne zeby to w jakąś liste spiąć tylko nie wiem jak.
Pozdrawiam
niezdecydowanyniezdecydowanyniezdecydowany