當前位置: 首頁>>代碼示例>>Java>>正文


Java GestureMapFragment類代碼示例

本文整理匯總了Java中com.playuav.android.fragments.helpers.GestureMapFragment的典型用法代碼示例。如果您正苦於以下問題:Java GestureMapFragment類的具體用法?Java GestureMapFragment怎麽用?Java GestureMapFragment使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GestureMapFragment類屬於com.playuav.android.fragments.helpers包,在下文中一共展示了GestureMapFragment類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onCreate

import com.playuav.android.fragments.helpers.GestureMapFragment; //導入依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_editor);

	fragmentManager = getSupportFragmentManager();

	gestureMapFragment = ((GestureMapFragment) fragmentManager
			.findFragmentById(R.id.gestureMapFragment));
	editorToolsFragment = (EditorToolsFragment) fragmentManager
			.findFragmentById(R.id.flightActionsFragment);
	missionListFragment = (EditorListFragment) fragmentManager
			.findFragmentById(R.id.missionFragment1);

	mSplineToggleContainer = findViewById(R.id.editorSplineToggleContainer);
	mSplineToggleContainer.setVisibility(View.VISIBLE);

	infoView = (TextView) findViewById(R.id.editorInfoWindow);

       final ImageButton resetMapBearing = (ImageButton) findViewById(R.id.map_orientation_button);
       resetMapBearing.setOnClickListener(this);
       final ImageButton zoomToFit = (ImageButton) findViewById(R.id.zoom_to_fit_button);
       zoomToFit.setVisibility(View.VISIBLE);
       zoomToFit.setOnClickListener(this);
	final ImageButton mGoToMyLocation = (ImageButton) findViewById(R.id.my_location_button);
	mGoToMyLocation.setOnClickListener(this);
	mGoToMyLocation.setOnLongClickListener(this);
	final ImageButton mGoToDroneLocation = (ImageButton) findViewById(R.id.drone_location_button);
	mGoToDroneLocation.setOnClickListener(this);
	mGoToDroneLocation.setOnLongClickListener(this);
	normalToggle = (RadioButton) findViewById(R.id.normalWpToggle);
	normalToggle.setOnClickListener(this);
	splineToggle = (RadioButton) findViewById(R.id.splineWpToggle);
	splineToggle.setOnClickListener(this);

       if(savedInstanceState != null){
           mIsSplineEnabled = savedInstanceState.getBoolean(EXTRA_IS_SPLINE_ENABLED);
           openedMissionFilename = savedInstanceState.getString(EXTRA_OPENED_MISSION_FILENAME);
       }

	// Retrieve the item detail fragment using its tag  什麽意思???
	itemDetailFragment = (MissionDetailFragment) fragmentManager
               .findFragmentByTag(ITEM_DETAIL_TAG);

	/*
	 * On phone, this view will be null causing the item detail to be shown
	 * as a dialog.
	 */
	mContainerItemDetail = findViewById(R.id.containerItemDetail);

	gestureMapFragment.setOnPathFinishedListener(this);
}
 
開發者ID:jiaminghan,項目名稱:droidplanner-master,代碼行數:53,代碼來源:EditorActivity.java

示例2: onCreate

import com.playuav.android.fragments.helpers.GestureMapFragment; //導入依賴的package包/類
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_editor);

	fragmentManager = getSupportFragmentManager();

	gestureMapFragment = ((GestureMapFragment) fragmentManager
			.findFragmentById(R.id.gestureMapFragment));
	editorToolsFragment = (EditorToolsFragment) fragmentManager
			.findFragmentById(R.id.flightActionsFragment);
	missionListFragment = (EditorListFragment) fragmentManager
			.findFragmentById(R.id.missionFragment1);

	mSplineToggleContainer = findViewById(R.id.editorSplineToggleContainer);
	mSplineToggleContainer.setVisibility(View.VISIBLE);

	infoView = (TextView) findViewById(R.id.editorInfoWindow);

       final ImageButton resetMapBearing = (ImageButton) findViewById(R.id.map_orientation_button);
       resetMapBearing.setOnClickListener(this);
       final ImageButton zoomToFit = (ImageButton) findViewById(R.id.zoom_to_fit_button);
       zoomToFit.setVisibility(View.VISIBLE);
       zoomToFit.setOnClickListener(this);
	final ImageButton mGoToMyLocation = (ImageButton) findViewById(R.id.my_location_button);
	mGoToMyLocation.setOnClickListener(this);
	mGoToMyLocation.setOnLongClickListener(this);
	final ImageButton mGoToDroneLocation = (ImageButton) findViewById(R.id.drone_location_button);
	mGoToDroneLocation.setOnClickListener(this);
	mGoToDroneLocation.setOnLongClickListener(this);
	normalToggle = (RadioButton) findViewById(R.id.normalWpToggle);
	normalToggle.setOnClickListener(this);
	splineToggle = (RadioButton) findViewById(R.id.splineWpToggle);
	splineToggle.setOnClickListener(this);

       if(savedInstanceState != null){
           mIsSplineEnabled = savedInstanceState.getBoolean(EXTRA_IS_SPLINE_ENABLED);
           openedMissionFilename = savedInstanceState.getString(EXTRA_OPENED_MISSION_FILENAME);
       }

	// Retrieve the item detail fragment using its tag
	itemDetailFragment = (MissionDetailFragment) fragmentManager
               .findFragmentByTag(ITEM_DETAIL_TAG);

	/*
	 * On phone, this view will be null causing the item detail to be shown
	 * as a dialog.
	 */
	mContainerItemDetail = findViewById(R.id.containerItemDetail);

	gestureMapFragment.setOnPathFinishedListener(this);
}
 
開發者ID:jesseyu,項目名稱:nongfei-missionplane,代碼行數:53,代碼來源:EditorActivity.java


注:本文中的com.playuav.android.fragments.helpers.GestureMapFragment類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。