本文整理匯總了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);
}