コード例 #1
0
 @Nullable
 @Override
 public View onCreateView(
     LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
   /** initialize navigation map view */
   if (mapLayout == null) {
     mapLayout = inflater.inflate(R.layout.navi_map_fragment, container, false);
     mAMapNaviView = (AMapNaviView) mapLayout.findViewById(R.id.id_navi_fragment_navi_map_view);
     mAMapNaviView.onCreate(savedInstanceState);
     mAMapNaviView.setAMapNaviViewListener(this);
     naviMapUtil.setAMap(mAMapNaviView.getMap());
   } else if (mapLayout.getParent() != null) {
     ((ViewGroup) mapLayout.getParent()).removeView(mapLayout);
   }
   return mapLayout;
 }
コード例 #2
0
 public void setEndPoint(NaviLatLng endPoint) {
   naviMapUtil.setEndPoint(endPoint);
 }
コード例 #3
0
 public void setLocation(NaviLatLng location) {
   naviMapUtil.setLocation(location);
 }
コード例 #4
0
 /** transfer arguments to naviMapUtil */
 public void setAMapNavi(AMapNavi aMapNavi) {
   mAMapNavi = aMapNavi;
   naviMapUtil.setAMapNavi(aMapNavi);
 }
コード例 #5
0
 public void startNavi() {
   naviMapUtil.startNavi();
 }
コード例 #6
0
 public void setActivity(Activity activity) {
   /** transfer activity to naviMapUtil */
   naviMapUtil.setMainActivity(activity);
 }