Étape 3: Mise en page Android
Pour plus d’informations sur comment mettre en place un projet studio android, voir mon premier instructables. Pour la présentation d’android, je viens de faire une application avec un grand imagebutton(mic icon) dans le centre. Lorsque vous appuyez sur ce bouton, votre téléphone commence à votre écoute.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft=" android:paddingRight=" android:paddingTop=" android:paddingBottom=" tools:context=".MainActivity" android:orientation="horizontal"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical"> <ImageButton android:layout_width="200dp" android:layout_height="200dp" android:id=" android:layout_gravity="center_horizontal" android:src=" ></ImageButton> </LinearLayout> </LinearLayout>