Je voudrais mettre le bouton transparent (carte visible en dessous) sur la carte? Comment puis-je y parvenir?Comment mettre un bouton transparent sur mapview?
0
A
Répondre
1
Essayez d'utiliser ceci sur le bouton android: background = "null @" ou android: background = "@ android: couleur/transparent" EDIT: placer sur l'utilisation d'une disposition relative:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.maps.MapView android:id="@+id/google_maps"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="@string/maps_key"/>
<Button android:id="@+id/googlemaps_select_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="Select"/>
</RelativeLayout>
0
Vous pourriez envelopper la carte dans un FrameLayout ou quelque chose. Puis ajoutez un bouton à la FrameLayout et utilisez android:layout_alignParentRight="true"
pour Droite, Gauche, Haut et Bas. Le bouton alignera alors ses bords avec les bords du FrameLayout, ce qui devrait envelopper la carte.
Questions connexes
- 1. Dessin transparent sur un MapView
- 2. Comment puis-je ajouter un bouton sur MapView android
- 3. Mettre du texte sur MapView
- 4. android cercle transparent à l'intérieur layout sur mapview
- 5. Android MapView Dessiner bouton sur POI cliquez
- 6. Comment dessiner un cercle sur mapView
- 7. Comment ajouter un élément non transparent sur un élément transparent?
- 8. comment mettre l'image PNG avec un fond transparent dans QToolButton
- 9. Création d'un bouton transparent
- 10. Comment mettre à jour les marqueurs sur MapView?
- 11. Comment mettre à jour Mapview périodiquement?
- 12. Comment mettre en pause l'état actuel de mapview dans l'iphone
- 13. Comment redimensionner un bouton pour avoir un texte transparent?
- 14. Comment mettre à jour un MapView avec une adresse?
- 15. Dessin d'un bouton transparent
- 16. Comment faire de MapView un bouton (iPhone/iPad)?
- 17. Border bouton transparent autour
- 18. comment faire un bouton qui clique ouvre un popup transparent
- 19. Android - bouton plein écran transparent
- 20. Bouton Triple: bouton Image avec fond transparent
- 21. Android: Comment puis-je définir les boutons sur google mapview comme n'étant pas transparent
- 22. Transparent UITableView sur l'iPhone?
- 23. Comment rendre un bouton Silverlight 2.0 entièrement transparent?
- 24. Mettre un bouton sur une imageVoir
- 25. Comment mettre le bouton sur webview
- 26. WPF: Comment rendre un arrière-plan de bouton transparent
- 27. Création d'une superposition d'emplacement sur un MapView en appuyant sur un bouton
- 28. Comment mettre un bouton d'annulation sur l'onglet repérer moi?
- 29. Comment mettre un bouton sur le dessus de mon panneau?
- 30. Comment mettre un bouton sur une carte dans Iphone
Ok, mais le problème est aussi de savoir comment le mettre sur mapview. – DixieFlatline