0

I am working with new Google map V2 in project I have added the infowindow on marker click and in my infowindow have two button.

Issue: When I click on button1 I want button1 should disable and button2 enable vice versa. Previously there is map.invalidate() with this we can refresh map but how can achieve this in map V2.

I refereed this link for infoWindow.

Community
  • 1
  • 1
vivek_25
  • 63
  • 10
  • Post your code what you tried till now? – M D May 29 '14 at 07:05
  • http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/ it may helps you – Ramki Anba May 29 '14 at 07:08
  • Kindly refer the link I used the same code. I just want to refesh the map so that UI will refresh and update the infoWindow – vivek_25 May 29 '14 at 07:13
  • @Ramki Anba -There is no method for refreshing the map :( – vivek_25 May 29 '14 at 07:16
  • You have two markers, when you click the marker you just get the location of the marker and set a flag for disable. – Ramki Anba May 29 '14 at 07:20
  • Actually button enable disable functionality is working fine but UI of button is not refreshing in infowindow when I click on some other marker at that time infowindow recreate and shows updated UI but I want Ui update instantly when click on buttons. – vivek_25 May 29 '14 at 07:27
  • What kind of update you want to do? – Ramki Anba May 29 '14 at 09:43
  • I have two buttons on infoWindow of marker I want to invalidate my infoWindow so that if I click on btn1 the btn1 should show disable and btn2 enable and when i click on btn2 the btn2 should show disable and btn1 will show enable. – vivek_25 May 29 '14 at 09:47

1 Answers1

0

way around I used show hide of infoWindow on button clicks - marker.showInfoWindow(); marker.hideInfoWindow(); it helps me :)

vivek_25
  • 63
  • 10