Advertisement
Guest User

Untitled

a guest
Feb 20th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.13 KB | None | 0 0
  1. _infoWindow = LayoutInflater.FromContext(Activity).Inflate (Resource.Layout.infowindow_magasins, null);
  2. _infoWindowBtnCall = (Button)_infoWindow.FindViewById (Resource.Id.btn_infowindow_call);
  3. _infoWindowBtnReserver = (Button)_infoWindow.FindViewById (Resource.Id.btn_infowindow_product);
  4. listenerCall = new OnInfoWindowElemTouchListener (_infoWindowBtnCall,
  5.                     Color.ParseColor(GetString(Resource.Color.noire)),
  6.                     Color.ParseColor(GetString(Resource.Color.rouge)),
  7.                     OnInfoWindowElemTouchListener.TYPE_CALL,
  8.                     _vmListener);
  9. listenerReserver = new OnInfoWindowElemTouchListener (_infoWindowBtnReserver,
  10.                     Color.ParseColor(GetString(Resource.Color.noire)),
  11.                     Color.ParseColor(GetString(Resource.Color.rouge)),
  12.                     OnInfoWindowElemTouchListener.TYPE_RESERVER,
  13.                     _vmListener);
  14.  
  15. _infoWindowBtnCall.SetOnTouchListener(listenerCall);
  16. _infoWindowBtnReserver.SetOnTouchListener(listenerReserver);
  17.  
  18. _adapter = new CarteMagasinsAdapter (_infoWindow, _magasins, _mapWrapper, listenerCall, listenerReserver, _isTabMagasin);
  19. Map.SetInfoWindowAdapter (_adapter);
  20. _mapWrapper.init (Map, Tools.ConvertDpToPixel(40/*marker size*/));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement