Bonjour,
Je souhaite afficher une ListView en entier (sans scroll vertical) dans une autre ListView mais je n'arrive pas gérer comme il faut les layout.
Le but est d'avoir une liste de 2 objets possible (IntervalTimer) qui peut être un Timer simple ou un TimerGroup qui contient des Timer.
Voici ce que j'obtiens actuellement :
Pièce jointe 217856
Voici ce que je souhaiterai obtenir (merci Paint.net) :
Pièce jointe 217857
XML de mon timer simple :
XML de mon timerGroup :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/timer_rectangle" android:orientation="horizontal" android:padding="10dp" > <TextView android:id="@+id/timeTextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/timer_rectangle" android:textSize="30sp" /> </LinearLayout>
Est-ce que quelqu'un pourrait m'aider ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/timer_rectangle" android:orientation="horizontal" android:padding="10dp" > <ListView android:id="@+id/listView" android:layout_width="wrap_content" android:layout_height="match_parent"/> <TextView android:id="@+id/nbOfTimeTimerGroup" android:layout_width="wrap_content" android:layout_height="match_parent" android:background="@drawable/timer_rectangle" android:textSize="30sp"/> </LinearLayout>
Merci
Partager