Bonjour,
Tu peux créer des layout en fonction de l'état de ton téléphone
http://android-developers.blogspot.c...g-layouts.html
This tag is particularly useful when you need to customize only part of your UI depending on the device's configuration. For instance, the main layout of your activity can be placed in the layout/ directory and can include another layout which exists in two flavors, in layout-land/ and layout-port/. This allows you to share most of the UI in portrait and landscape
Il y en a d'autres pour cela tu peux les trouver en créant un nouveau fichier "xml android ressource" tu auras les options à choisir lors de sa création .
Après pour savoir dans quelle position tu te trouves
Tu as une fonction t'indiquant tout changement de configuration
http://developer.android.com/referen...Configuration)
Il faut en plus rajouter une option dans le manifest.
android:configChanges="keyboardHidden|orientation"
Partager