Issue
Is is possible to put fixed buttons (with image) on top of an android map.
I want to add buttons on top of the android map then when the user click on it, it performs something on the map.
Similar to the zoom control, but always visible.
Solution
Put the map and the button in a relative layout. Something like:
<RelativeLayout>
<MapView>
...
</MapView>
<Button>
..make its align parent top property true here
</Button>
</RelativeLayout>
This should put the botton on top of the map and aligned to the top of the screen. And if you want to have a button with an image use ImageButton insead.
Answered By - Urban
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.