当前位置: 首页>>代码示例>>Java>>正文


Java MissionDetailFragment类代码示例

本文整理汇总了Java中com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment的典型用法代码示例。如果您正苦于以下问题:Java MissionDetailFragment类的具体用法?Java MissionDetailFragment怎么用?Java MissionDetailFragment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MissionDetailFragment类属于com.playuav.android.proxy.mission.item.fragments包,在下文中一共展示了MissionDetailFragment类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: selectMissionDetailType

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的package包/类
private MissionDetailFragment selectMissionDetailType(List<MissionItemProxy> proxies){
    if(proxies == null || proxies.isEmpty())
        return null;

    MissionItemType referenceType = null;
    for(MissionItemProxy proxy: proxies){
        final MissionItemType proxyType = proxy.getMissionItem().getType();
        if(referenceType == null){
            referenceType = proxyType;
        }
        else if (referenceType != proxyType || MissionDetailFragment
                .typeWithNoMultiEditSupport.contains(referenceType)) {
                //Return a generic mission detail.
                return new MissionDetailFragment();
            }
    }

    return MissionDetailFragment.newInstance(referenceType);
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:20,代码来源:EditorActivity.java

示例2: showItemDetail

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的package包/类
private void showItemDetail(MissionDetailFragment itemDetail) {
	if (itemDetailFragment == null) {
		addItemDetail(itemDetail);
	} else {
		switchItemDetail(itemDetail);
	}
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:8,代码来源:EditorActivity.java

示例3: addItemDetail

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的package包/类
private void addItemDetail(MissionDetailFragment itemDetail) {
	itemDetailFragment = itemDetail;
	if (itemDetailFragment == null)
		return;

	if (mContainerItemDetail == null) {
		itemDetailFragment.show(fragmentManager, ITEM_DETAIL_TAG);
	} else {
		fragmentManager.beginTransaction()
				.replace(R.id.containerItemDetail, itemDetailFragment, ITEM_DETAIL_TAG)
				.commit();
	}
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:14,代码来源:EditorActivity.java

示例4: onCreate

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的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

示例5: switchItemDetail

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的package包/类
public void switchItemDetail(MissionDetailFragment itemDetail) {
	removeItemDetail();
	addItemDetail(itemDetail);
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:5,代码来源:EditorActivity.java

示例6: getDetailFragment

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的package包/类
public MissionDetailFragment getDetailFragment() {
	return MissionDetailFragment.newInstance(mMissionItem.getType());
}
 
开发者ID:jiaminghan,项目名称:droidplanner-master,代码行数:4,代码来源:MissionItemProxy.java

示例7: onCreate

import com.playuav.android.proxy.mission.item.fragments.MissionDetailFragment; //导入依赖的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.proxy.mission.item.fragments.MissionDetailFragment类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。