The Android Fragment that represents a Map component in an Android app.
Questions tagged [mapfragment]
240 questions
0
votes
1 answer
Moving Camera in Mapfragment from Activity doesn´t work
I have a mapFragment and i want to have control over the map from my activity...e.g. moving the camera etc. , I also need to push Data von Activity to the Fragment (e.g. LatLng) to change the Map.
Here´s my code and the Failure i get trying to run…

skm
- 559
- 1
- 6
- 22
0
votes
1 answer
How to zoom on center with double tap in google map fragment in android studio
I am new in android studio, I am using google map fragment inside a fragment. i need to zoom exactly on center everytime when double tap on map.
in eclise i used MApView and intercept double tap but i dont know what will i do in android studio.
This…

sunil
- 796
- 1
- 8
- 28
0
votes
2 answers
Creating a custom Fragment with full screen map
I'd like to build a Fragment which consists of a full screen map overlaid with other views (A ViewPager, EditText, and the like). I've thought of two different options:
Create a Fragment with a MapView near the root of the layout and set it to…

Orbit
- 2,985
- 9
- 49
- 106
0
votes
2 answers
Create transparent toolbar over map fragment
i have implemented a transparent toolbar as action bar and tried it with many fragments, they were working fine, but once I use map fragment in that screen the map fragment overlaps the transparent toolbar.Is there any way to save this issue...This…

raasesh
- 161
- 11
0
votes
0 answers
Why isn't setmylocationEnabled showing location button?
I am building a navigation drawer application with a google maps fragment in the main activity, when opening app the first time, user IS prompted to activate locations on the emulator, but my location is in the south pacific, and the…

Albin Engberg
- 11
- 1
- 5
0
votes
1 answer
Updating current location instead of default?
Trying to get the app to show current location, but I don't believe it's even getting to the onConnected(). Any suggestions? I am working in a map fragment and the map appears with the default location.
import android.Manifest;
import…
0
votes
3 answers
Menu in FragmentActivity is not showing
I have an issue with adding Menu in my FragmentActivity.
I have added a MapFragment and some buttons in my FragmentActivity:
Then I'm trying to add optionsMenu above the map but my code does not works (there is no errors during running the…

Anton Prokopov
- 639
- 6
- 27
0
votes
2 answers
Android fragment remain background
I am doing an Android application with several tabs, let say that
have 2 tabs. One tab is an "android.support.v4.app.Fragment" that
contains a few textfields and a button, and the other one is an
"android.app.Fragment" that at the same time is a…

Erqox
- 11
- 4
0
votes
1 answer
i have created recycleview and framelayout(Mapfragment) with sameview , but framelayout always in front even through its gone
I have added my code which contains Framelayout with mapview dynamic creation and RecyclerView with another layout, I am using this as a Fragment in ViewPager fragmentstate adapter.

vino cs
- 23
- 6
0
votes
1 answer
MapFragment update button position
I am encountering a rather specific problem. I have a MapFragment in my Activity in a FrameLayout so that the Toolbar overlays the map. This because the Toolbar needs to be animated off the screen sometimes and if it doesn't overlay the map there…

Niels Masdorp
- 2,534
- 2
- 18
- 31
0
votes
1 answer
MapFragment Inflated Activate Through EditText
Im having a problem in inflating the map. At first if I click the EditText It will launch, If I cancel / ok the AlertDialog.Builder , and click again the EditText it will cause:
E/MapError: android.view.InflateException: Binary XML file line #10:…

RoCkDevstack
- 3,517
- 7
- 34
- 56
0
votes
1 answer
As I can move a marker in a MapFragment in real time?
Please someone knows how to make a marker to move while a car is walking in a MapFragment android studio, thanks
0
votes
1 answer
MapFragment returns null after Using Calligraphy dependecy
I used Calligraphy for loading custom fonts. In my activity's i attached the Calligraphy wrapper like below
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
…

George Thomas
- 4,566
- 5
- 30
- 65
0
votes
1 answer
MapFragment extremely slow and barely responding
I am currently developing an android app using Xamarin.Android. In this app, I use a DrawerLayout (from the Support library v4) to show my app content and a menu that I can open by pressing a button in the toolbar or by sliding to the right.
In the…

YumeYume
- 981
- 2
- 12
- 33