当前位置: 首页>>代码示例>>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;未经允许,请勿转载。