HDTutorial
FR

La lecture charge le lecteur YouTube intégré (mode confidentialité renforcée).

Créer un menu d’options avec sous-éléments dans Android Studio

469 660 vues 26 octobre 2017 6:38

Voir sur YouTube
ChaîneCoding in Flow

Description de l’auteur

Dans cette vidéo, nous allons créer un menu d’options dans Android Studio, incluant des icônes, des menus déroulants et des sous-éléments. Ce menu s’affichera dans la barre d’application. Pour cela, nous allons redéfinir la méthode onCreateOptionsMenu et y associer notre fichier menu.xml. Nous gérons aussi les clics sur chaque élément via la méthode onOptionsItemSelected.

Exemple de code pour cette vidéo :

💻 Découvrez les MEILLEURS tutoriels de programmation sur TutHub :

⭐ Obtenez mon cours sur le cache MVVM dès maintenant :

❓ Rejoignez notre communauté gratuite de développeurs :

📣 Suivez Coding in Flow sur d’autres plateformes :

À propos de ce tutoriel

Coding in Flow a publié ce tutoriel vidéo de 6:38 le 26 octobre 2017. Il a été vu 469 660 fois sur YouTube.

Durée
6:38
Publié le
26 octobre 2017
Vues
469 660
J’aime
5 372

Partager

Pour aller plus loin

  • Build your first app | Android Developers developer.android.com

    project with Android Studio and run it. Then, you create a new interface for the app that takes user input and switches to a new screen in the app to display it. Before you start, there are two fundamental concepts that…

  • Android ActionBar Example Tutorial - JournalDev journaldev.com

    Android ActionBar is a menu bar that runs across the top of the activity screen in android. Android ActionBar can contain menu items which become visible when the user clicks the “menu” button. In general an ActionBar c…

  • Android Options Menu with Examples - Tutlane tutlane.com

    Following is the example of implementing an Options Menu in the android application. Create a new android application using android studio and give names as OptionsMenu. In case if you are not aware of creating an app i…

Ce tutoriel dans d’autres langues