diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java index 6e8057b..81d8c37 100644 --- a/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java +++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java @@ -21,6 +21,7 @@ import static com.mapbox.mapboxsdk.style.layers.Property.VISIBLE; import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleColor; import android.graphics.Color; import android.view.View; +import android.widget.Button; import android.widget.Toast; import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.circleRadius; @@ -138,6 +139,10 @@ public class MapActivity extends BaseActivity private void setOnMapLongClickListener() { mapboxMap.addOnMapLongClickListener((LatLng latLng) -> { Log.e(tag, "eeeeee"); + Button button = findViewById(R.id.select_location_button); + button.setVisibility(View.VISIBLE); + + button.setOnClickListener(); }); } diff --git a/app/src/main/res/layout/activity_map.xml b/app/src/main/res/layout/activity_map.xml index 4d562eb..3b84e79 100644 --- a/app/src/main/res/layout/activity_map.xml +++ b/app/src/main/res/layout/activity_map.xml @@ -90,6 +90,17 @@ fab:fab_title="@string/fab_title_attractions" /> +