Search code examples
androidgoogle-mapsandroid-studiogoogle-maps-api-2google-nearby

How to make a grid of buttons connected with google maps api?


I'm trying to make an android application (NearBy places) using google places api and google maps api v2. I'm using this code,it looks good but I want to make a grid of buttons first, and when I click on one of them it show me the nearest places. The grid : enter image description here

How can I change this code to get what I want ?


Solution

  • enter image description hereYou can make a frame layout.. and inside add the map fragment and above mao make grid buttons as you want .. and per click hide the grid layout .. So the result will show in map and you again load grid layout(Buttons) infront of the Map