Bonjour,
je débute avec la programmation android, mais en réalité je ne vois pas assez de docs sur la création des widgets.
Dans mon main.layout j'ai ça :
je veux en cliquant sur un des boutons que je fasse apparaître d'autres boutons dans la partie visible (comme dans un contenu). Mais je ne sais pas comment m'y prendre.
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 <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:id="@+id/LinearLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="false" android:layout_marginTop="5dip"> <Button android:layout_height="wrap_content" android:text="Infos Omnity" android:id="@+id/infos_omnity" android:layout_width="80dip" /> <Button android:layout_height="wrap_content" android:text="Mes actions" android:id="@+id/mes_actions" android:layout_width="80dip" /> </LinearLayout> </RelativeLayout>
Merci de me donner une solution ou me proposer des docs.
Partager