private void SetupActionSpinner() { if (_action != null) { try { string[] actions = StringHelper.ActionList(); ArrayAdapter adapter = new ArrayAdapter(this, Resource.Layout.SpinnerGeneral, actions); if (adapter != null) { adapter.SetDropDownViewResource(Resource.Layout.SpinnerGeneralDropdownItem); _action.Adapter = adapter; Log.Info(TAG, "SetupActionSpinner: Set Action type adapter"); } else { Log.Error(TAG, "SetupActionSpinner: Failed to create adapter"); } } catch (Exception e) { Log.Error(TAG, "SetupActionSpinner: Exception - " + e.Message); if (GlobalData.ShowErrorDialog) { ErrorDisplay.ShowErrorAlert(this, e, GetString(Resource.String.ErrorStructuredPlanRelationshipsDialogSetActSpin), "StructuredPlanRelationshipsDialogActivity.SetupActionSpinner"); } } } else { Log.Error(TAG, "SetupActionSpinner: _action is NULL!"); } }