Reputation: 477
I waned to change the position of the image icon which is on Google map when clicked on it goes to current location just like plus and minus symbol. So how can change the position of these symbols.
I do not know what do we call that image icon. I tried to Google how to change position of that icon but no use.
Upvotes: 1
Views: 1469
Reputation: 24848
Try this way,hope this will help you to solve your problem
View plusMinusButton = suppormanagerObj.getView().findViewById(1);
View locationButton = suppormanagerObj.getView().findViewById(2);
// and next place it, for exemple, on bottom right (as Google Maps app)
RelativeLayout.LayoutParams rlp = (RelativeLayout.LayoutParams) locationButton.getLayoutParams();
// position on right bottom
rlp.addRule(RelativeLayout.ALIGN_PARENT_TOP, 0);
rlp.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
Upvotes: 3