本文整理汇总了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);
}
示例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);
}