Reputation: 57
I wanted to create a button in my Android maps at the top right corner(has to stay there all the time, even if I move in the map). when tapped the map should go to satellite view, when tapped again it should come back to street view.
I have the code for street view and map view, I just want to know how to create a button that stays always at the top right corner.
Thanks
Upvotes: 0
Views: 284
Reputation: 29121
<RelativeLayout>
<Button
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
/>
// place your other map or street view here.
</RelativeLayout>
use this layout.
Upvotes: 2