Nav
Nav

Reputation: 477

Change position of icon right top corner of Google map which finds current location

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

Answers (1)

Hareshkumar Chhelana
Hareshkumar Chhelana

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

Related Questions