We have a my location Icon in google maps like
I want to change this icon button with my desired I
Something I am using
ImageView btnMyLocation = (ImageView) ((View) mapFragment.getView().findViewById(Integer.parseInt("1")).getParent()).findViewById(Integer.parseInt("2"));
btnMyLocation.setImageResource(R.drawable.ic_current_location);
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams)
btnMyLocation.getLayoutParams();
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT, RelativeLayout.TRUE);
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
layoutParams.setMargins(0, 0, 30, 30);
btnMyLocation.setLayoutParams(layoutParams);
Hope it will help...