ims.map
Class OnTouchMapFragment

java.lang.Object
  extended by android.app.Fragment
      extended by com.google.android.gms.maps.MapFragment
          extended by ims.map.OnTouchMapFragment
All Implemented Interfaces:
android.content.ComponentCallbacks, android.content.ComponentCallbacks2, android.view.View.OnCreateContextMenuListener

public class OnTouchMapFragment
extends com.google.android.gms.maps.MapFragment

MapFramgent for Map. Extends MapFragment to use an OnTouchListener.

Copyright © 2014 by Daniela Blum

This file is part of GPSChildFinder.
GPSChildFinder is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses.

Author:
Daniela Blum

Nested Class Summary
 
Nested classes/interfaces inherited from class android.app.Fragment
android.app.Fragment.InstantiationException, android.app.Fragment.SavedState
 
Field Summary
 
Fields inherited from interface android.content.ComponentCallbacks2
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
 
Constructor Summary
OnTouchMapFragment()
           
 
Method Summary
 android.view.View getView()
           
 android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
          Wrappes the original view in a MapWrapperLayout.
 void setOnTouchListener(MapWrapperLayout.OnTouchListener onTouchListener)
          To set an OnTouchListener to the layout.
 
Methods inherited from class com.google.android.gms.maps.MapFragment
getMap, newInstance, newInstance, onActivityCreated, onAttach, onCreate, onDestroy, onDestroyView, onInflate, onLowMemory, onPause, onResume, onSaveInstanceState, setArguments
 
Methods inherited from class android.app.Fragment
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isVisible, onActivityResult, onConfigurationChanged, onContextItemSelected, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onOptionsItemSelected, onOptionsMenuClosed, onPrepareOptionsMenu, onStart, onStop, onTrimMemory, onViewCreated, onViewStateRestored, registerForContextMenu, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivity, startActivityForResult, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnTouchMapFragment

public OnTouchMapFragment()
Method Detail

onCreateView

public android.view.View onCreateView(android.view.LayoutInflater inflater,
                                      android.view.ViewGroup container,
                                      android.os.Bundle savedInstanceState)
Wrappes the original view in a MapWrapperLayout.

Overrides:
onCreateView in class com.google.android.gms.maps.MapFragment
Parameters:
inflater - Instantiates a layout XML file into its corresponding View objects
container - A ViewGroup is a special view that can contain other views (called children)
savedInstanceState - A mapping from String values to various Parcelable types
Returns:
mapWrapperLayout with the added original view

getView

public android.view.View getView()
Overrides:
getView in class android.app.Fragment

setOnTouchListener

public void setOnTouchListener(MapWrapperLayout.OnTouchListener onTouchListener)
To set an OnTouchListener to the layout.

Parameters:
onTouchListener - the listener to set