Bonjour a tous,

Dans le but de créer un Thumbnail custom je voudrais mettre un place une GridView avec des tailles de colonnes différentes en suivant ce schéma :



Donc j'aimerais avoir 10 items sur ma page avec 2 grands items et 8 petits autres.

Voici mon grid_layout.xml actuel :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="utf-8"?>
    <FrameLayout 
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <GridView
            android:id="@+id/gridview"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:verticalSpacing="0dp"
            android:horizontalSpacing="0dp"
            android:stretchMode="columnWidth"
            android:numColumns="2" />
    </FrameLayout>
Est-ce possible ? Si oui comment ? Merci