protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.xy_chart; // the top part of the UI components for adding new data points mX = (EditText)findViewById(R.id.xValue); mY = (EditText)findViewById(R.id.yValue); mAdd = (Button)findViewById(R.id.add); // set some properties on the main renderer mRenderer.ApplyBackgroundColor = true; mRenderer.BackgroundColor = Color.argb(100, 50, 50, 50); mRenderer.AxisTitleTextSize = 16; mRenderer.ChartTitleTextSize = 20; mRenderer.LabelsTextSize = 15; mRenderer.LegendTextSize = 15; mRenderer.Margins = new int[] { 20, 30, 15, 0 }; mRenderer.ZoomButtonsVisible = true; mRenderer.PointSize = 5; // the button that handles the new series of data creation mNewSeries = (Button)findViewById(R.id.new_series); mNewSeries.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); mAdd.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); }
public override Dialog onCreateDialog(Bundle savedInstanceState) { AlertDialog.Builder builder = new AlertDialog.Builder(Activity); LayoutInflater inflater = Activity.LayoutInflater; View view = inflater.inflate(R.layout.dialog_file_list, (ViewGroup)Activity.findViewById(android.R.id.content).RootView, false); ListView listView = (ListView)view.findViewById(R.id.listView1); listView.OnItemClickListener = this; fileAdapter = new FileAdapter(this, Activity); listView.Adapter = fileAdapter; pathTextView = (TextView)view.findViewById(R.id.textViewTitle); pathTextView.OnClickListener = this; okButton = (Button)view.findViewById(R.id.buttonOk); okButton.OnClickListener = this; view.findViewById(R.id.buttonCancel).OnClickListener = this; builder.setView(view).setTitle(getString([email protected])); updateFileList(new File(Environment.ExternalStorageDirectory.AbsolutePath)); return(builder.create()); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_data_matrix; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_pint_text; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_qr_code; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; }
public override android.view.View getView(int position, android.view.View convertView , android.view.ViewGroup parent) { android.widget.Button b = (android.widget.Button) this._enclosing.mInflater.inflate ([email protected]_picker_button, null); b.setText(java.lang.CharSequenceProxy.Wrap(this._enclosing.mOptions[position].ToString ())); b.setOnClickListener(this._enclosing); return(b); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_write_string; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.login; mLoginName = (EditText) findViewById(R.id.loginName); mLoginButton = (Button) findViewById(R.id.loginButton); mLoginButton.Enabled = false; mLoginButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.login; mLoginName = (EditText)findViewById(R.id.loginName); mLoginButton = (Button)findViewById(R.id.loginButton); mLoginButton.Enabled = false; mLoginButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
protected internal override void onFinishInflate() { mImageButton = (android.widget.ImageButton)findViewById([email protected] ); mTextButton = (android.widget.Button)findViewById([email protected] ); mImageButton.setOnClickListener(this); mTextButton.setOnClickListener(this); mImageButton.setOnLongClickListener(this); setOnClickListener(this); setOnLongClickListener(this); }
protected internal override void onFinishInflate() { mImageButton = (android.widget.ImageButton)findViewById([email protected] ); mTextButton = (android.widget.Button)findViewById([email protected] ); mImageButton.setOnClickListener(this); mTextButton.setOnClickListener(this); mImageButton.setOnLongClickListener(this); setOnClickListener(this); setOnLongClickListener(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_pointericon; Button changeIcon = (Button)findViewById(R.id.btn_changeicon); mHoverTextView = (TextView)findViewById(R.id.text_hoverarea); mPointerIcon.setHoverIcon(mHoverTextView, Resources.getDrawable(R.drawable.pointericon)); changeIcon.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.main; mCallName = (EditText) findViewById(R.id.callName); mCallButton = (Button) findViewById(R.id.callButton); mCallButton.Enabled = false; mCallButton.OnClickListener = buttonClickListener; Button stopButton = (Button) findViewById(R.id.stopButton); stopButton.OnClickListener = buttonClickListener; }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_pdf417; mErrorCorrectionLevelTextView = (TextView)findViewById(R.id.textView5); Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_vector_text; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; mFontTextView = (TextView)findViewById(R.id.textView3); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_apasimple_client; try { Sapa sapa = new Sapa(); sapa.initialize(this); mService = new SapaService(); mService.stop(true); mService.start(SapaService.START_PARAM_DEFAULT_LATENCY); mClient = new SapaProcessor(this, null, new StatusListenerAnonymousInnerClassHelper(this)); mService.register(mClient); } catch (SsdkUnsupportedException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); Toast.makeText(this, "not support professional audio", Toast.LENGTH_LONG).show(); finish(); return; } catch (InstantiationException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); Toast.makeText(this, "fail to instantiate", Toast.LENGTH_LONG).show(); finish(); return; } catch (AndroidRuntimeException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); Toast.makeText(this, "fail to start", Toast.LENGTH_LONG).show(); finish(); return; } mPlayButton = (Button) this.findViewById(R.id.play_button); mPlayButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); mActivateButton = (Button) this.findViewById(R.id.button_activate); mActivateButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); mDeactivateButton = (Button) this.findViewById(R.id.button_deactivate); mDeactivateButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper3(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_maxicode; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; mEditText = (EditText)findViewById(R.id.editText1); mRadioGroup = (RadioGroup)findViewById(R.id.radioGroup1); mRadioGroup.OnCheckedChangeListener = new OnCheckedChangeListenerAnonymousInnerClassHelper(this); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.main; mCallName = (EditText)findViewById(R.id.callName); mCallButton = (Button)findViewById(R.id.callButton); mCallButton.Enabled = false; mCallButton.OnClickListener = buttonClickListener; Button stopButton = (Button)findViewById(R.id.stopButton); stopButton.OnClickListener = buttonClickListener; }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_bitmap; mImageView = (ImageView)findViewById(R.id.imageView1); mTextView = (TextView)findViewById(R.id.textView5); Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_apasimple_client; try { Sapa sapa = new Sapa(); sapa.initialize(this); mService = new SapaService(); mService.stop(true); mService.start(SapaService.START_PARAM_DEFAULT_LATENCY); mClient = new SapaProcessor(this, null, new StatusListenerAnonymousInnerClassHelper(this)); mService.register(mClient); } catch (SsdkUnsupportedException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); Toast.makeText(this, "not support professional audio", Toast.LENGTH_LONG).show(); finish(); return; } catch (InstantiationException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); Toast.makeText(this, "fail to instantiate", Toast.LENGTH_LONG).show(); finish(); return; } catch (AndroidRuntimeException e) { Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); Toast.makeText(this, "fail to start", Toast.LENGTH_LONG).show(); finish(); return; } mPlayButton = (Button)this.findViewById(R.id.play_button); mPlayButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); mActivateButton = (Button)this.findViewById(R.id.button_activate); mActivateButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); mDeactivateButton = (Button)this.findViewById(R.id.button_deactivate); mDeactivateButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper3(this); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.xy_chart; mValue = (EditText) findViewById(R.id.xValue); mRenderer.ZoomButtonsVisible = true; mRenderer.StartAngle = 180; mRenderer.DisplayValues = true; mAdd = (Button) findViewById(R.id.add); mAdd.Enabled = true; mValue.Enabled = true; mAdd.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.xy_chart; mValue = (EditText)findViewById(R.id.xValue); mRenderer.ZoomButtonsVisible = true; mRenderer.StartAngle = 180; mRenderer.DisplayValues = true; mAdd = (Button)findViewById(R.id.add); mAdd.Enabled = true; mValue.Enabled = true; mAdd.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_character_set_selection; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; button = (Button)findViewById(R.id.button3); button.OnClickListener = this; mInternationalCharacterSetTextView = (TextView)findViewById(R.id.textView1); mCodePageTextView = (TextView)findViewById(R.id.textView2); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw1d_barcode; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; button = (Button)findViewById(R.id.button3); button.OnClickListener = this; mBarcodeTextView = (TextView)findViewById(R.id.textView3); mHriTextView = (TextView)findViewById(R.id.textView8); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_direct_io; mCommandEdit = (EditText)findViewById(R.id.editText1); mResponseLengthEdit = (EditText)findViewById(R.id.editText2); mCheckBox = (CheckBox)findViewById(R.id.checkBox1); mCheckBox.OnCheckedChangeListener = new OnCheckedChangeListenerAnonymousInnerClassHelper(this); Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; }
public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(com.opentok.android.demo.opentoksamples.R.layout.layout_fragment_pub_control, container, false); mPublisherContainer = (RelativeLayout)openTokActivity.findViewById(com.opentok.android.demo.opentoksamples.R.id.fragment_pub_container); mPublisherMute = (ImageButton)rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.mutePublisher); mPublisherMute.OnClickListener = this; mSwapCamera = (ImageButton)rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.swapCamera); mSwapCamera.OnClickListener = this; mEndCall = (Button)rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.endCall); mEndCall.OnClickListener = this; return(rootView); }
protected internal override void onCreate(android.os.Bundle savedInstanceState) { base.onCreate(savedInstanceState); android.view.WindowManagerClass.LayoutParams @params = getWindow().getAttributes( ); @params.token = mView.getApplicationWindowToken(); @params.type = android.view.WindowManagerClass.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; @params.flags = @params.flags | android.view.Window.FEATURE_NO_TITLE; setContentView([email protected]_picker); android.widget.GridView grid = (android.widget.GridView)findViewById([email protected] .id.characterPicker); grid.setAdapter(new android.text.method.CharacterPickerDialog.OptionsAdapter(this , getContext())); grid.setOnItemClickListener(this); mCancelButton = (android.widget.Button)findViewById([email protected] ); mCancelButton.setOnClickListener(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_smartclip; TextView tv = (TextView)findViewById(R.id.text_static); SlookSmartClip sc = new SlookSmartClip(tv); sc.clearAllMetaTag(); sc.addMetaTag(new SlookSmartClipMetaTag(SlookSmartClipMetaTag.TAG_TYPE_URL, "http://www.samsung.com")); sc.addMetaTag(new SlookSmartClipMetaTag(SlookSmartClipMetaTag.TAG_TYPE_PLAIN_TEXT, "This is android textview.")); Button gotoPinAll = (Button)findViewById(R.id.gotopinboard); gotoPinAll.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
protected internal override void onCreate(android.os.Bundle savedInstanceState) { base.onCreate(savedInstanceState); android.view.WindowManagerClass.LayoutParams @params = getWindow().getAttributes( ); @params.token = mView.getApplicationWindowToken(); @params.type = android.view.WindowManagerClass.LayoutParams.TYPE_APPLICATION_ATTACHED_DIALOG; @params.flags = @params.flags | android.view.Window.FEATURE_NO_TITLE; setContentView([email protected]_picker); android.widget.GridView grid = (android.widget.GridView)findViewById([email protected] .id.characterPicker); grid.setAdapter(new android.text.method.CharacterPickerDialog.OptionsAdapter(this , getContext())); grid.setOnItemClickListener(this); mCancelButton = (android.widget.Button)findViewById([email protected] ); mCancelButton.setOnClickListener(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_text; Button button = (Button)findViewById(R.id.button1); button.OnClickListener = this; button = (Button)findViewById(R.id.button2); button.OnClickListener = this; mFontTextView = (TextView)findViewById(R.id.textView3); mHorizontalMultiplierSeekBar = (SeekBar)findViewById(R.id.seekBar1); mHorizontalMultiplierSeekBar.OnSeekBarChangeListener = this; mVerticalMultiplierSeekBar = (SeekBar)findViewById(R.id.seekBar2); mVerticalMultiplierSeekBar.OnSeekBarChangeListener = this; }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_writingbuddy_edittext; EditText editInput = (EditText)findViewById(R.id.edit_input); mOutputImageView = (ImageView)findViewById(R.id.image_output); mWritingBuddy = new SlookWritingBuddy(editInput); Button enableButton = (Button)findViewById(R.id.btn_enable); enableButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); Button modeButton = (Button)findViewById(R.id.btn_enable_image); modeButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); }
private void centerButton(android.widget.Button button) { android.widget.LinearLayout.LayoutParams @params = (android.widget.LinearLayout.LayoutParams )button.getLayoutParams(); @params.gravity = android.view.Gravity.CENTER_HORIZONTAL; @params.weight = 0.5f; button.setLayoutParams(@params); android.view.View leftSpacer = mWindow.findViewById([email protected] ); if (leftSpacer != null) { leftSpacer.setVisibility(android.view.View.VISIBLE); } android.view.View rightSpacer = mWindow.findViewById([email protected] ); if (rightSpacer != null) { rightSpacer.setVisibility(android.view.View.VISIBLE); } }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_draw_block_two; mEditText = (EditText)findViewById(R.id.editText5); mExOrEditText7 = (EditText)findViewById(R.id.editText7); mExOrEditText8 = (EditText)findViewById(R.id.editText8); mExOrEditText9 = (EditText)findViewById(R.id.editText9); mExOrEditText10 = (EditText)findViewById(R.id.editText10); mRadioGroup = (RadioGroup)findViewById(R.id.radioGroup1); mRadioGroup.OnCheckedChangeListener = new OnCheckedChangeListenerAnonymousInnerClassHelper(this); Button button = (Button)findViewById(R.id.button1); button.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_writingbuddy_viewgroup; FrameLayout fl = (FrameLayout)findViewById(R.id.input); mOutputTextView = (TextView)findViewById(R.id.text_output); mWritingBuddy = new SlookWritingBuddy(fl); mWritingBuddy.TextWritingListener = new TextWritingListenerAnonymousInnerClassHelper(this); Button enableButton = (Button)findViewById(R.id.btn_enable); enableButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); Button typeButton = (Button)findViewById(R.id.btn_type); typeButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_advanced_camera_capturer; localMedia = LocalMedia.create(this); videoView = (VideoView)findViewById(R.id.video_view); toggleFlashButton = (Button)findViewById(R.id.toggle_flash_button); takePictureButton = (Button)findViewById(R.id.take_picture_button); pictureImageView = (ImageView)LayoutInflater.inflate(R.layout.picture_image_view, null); pictureDialog = (new AlertDialog.Builder(this)).setView(pictureImageView).setTitle(null).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this)) .create(); if (!checkPermissionForCamera()) { requestPermissionForCamera(); } else { addCameraVideo(); } }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_main; mPhoneNumber = (EditText) findViewById(R.id.phoneNumber); mSmsButton = (Button) findViewById(R.id.smsVerificationButton); mFlashCallButton = (Button) findViewById(R.id.callVerificationButton); mCountryIso = PhoneNumberUtils.getDefaultCountryIso(this); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final String defaultCountryName = new java.util.Locale("", mCountryIso).getDisplayName(); string defaultCountryName = (new Locale("", mCountryIso)).DisplayName; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final CountrySpinner spinner = (CountrySpinner) findViewById(R.id.spinner); CountrySpinner spinner = (CountrySpinner) findViewById(R.id.spinner); spinner.init(defaultCountryName); spinner.addCountryIsoSelectedListener(new CountryIsoSelectedListenerAnonymousInnerClassHelper(this)); resetNumberTextWatcher(mCountryIso); tryAndPrefillPhoneNumber(); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_print_bitmap; mImageView = (ImageView)findViewById(R.id.imageView1); mTextView = (TextView)findViewById(R.id.textView4); mWidthEdit = (EditText)findViewById(R.id.editText2); mWidthRadioGroup = (RadioGroup)findViewById(R.id.radioGroup2); mWidthRadioGroup.OnCheckedChangeListener = new OnCheckedChangeListenerAnonymousInnerClassHelper(this); Button button = (Button)findViewById(R.id.button1); button.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); button = (Button)findViewById(R.id.button2); button.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); IntentFilter filter = new IntentFilter(); filter.addAction(MainActivity.ACTION_COMPLETE_PROCESS_BITMAP); registerReceiver(mReceiver, filter); }
public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_advanced_camera_capturer; localMedia = LocalMedia.create(this); videoView = (VideoView) findViewById(R.id.video_view); toggleFlashButton = (Button) findViewById(R.id.toggle_flash_button); takePictureButton = (Button) findViewById(R.id.take_picture_button); pictureImageView = (ImageView) LayoutInflater.inflate(R.layout.picture_image_view, null); pictureDialog = (new AlertDialog.Builder(this)).setView(pictureImageView).setTitle(null).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this)) .create(); if (!checkPermissionForCamera()) { requestPermissionForCamera(); } else { addCameraVideo(); } }
public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(com.opentok.android.demo.opentoksamples.R.layout.layout_fragment_pub_control, container, false); mPublisherContainer = (RelativeLayout) openTokActivity.findViewById(com.opentok.android.demo.opentoksamples.R.id.fragment_pub_container); mPublisherMute = (ImageButton) rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.mutePublisher); mPublisherMute.OnClickListener = this; mSwapCamera = (ImageButton) rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.swapCamera); mSwapCamera.OnClickListener = this; mEndCall = (Button) rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.endCall); mEndCall.OnClickListener = this; return rootView; }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.xy_chart; // the top part of the UI components for adding new data points mX = (EditText) findViewById(R.id.xValue); mY = (EditText) findViewById(R.id.yValue); mAdd = (Button) findViewById(R.id.add); // set some properties on the main renderer mRenderer.ApplyBackgroundColor = true; mRenderer.BackgroundColor = Color.argb(100, 50, 50, 50); mRenderer.AxisTitleTextSize = 16; mRenderer.ChartTitleTextSize = 20; mRenderer.LabelsTextSize = 15; mRenderer.LegendTextSize = 15; mRenderer.Margins = new int[] {20, 30, 15, 0}; mRenderer.ZoomButtonsVisible = true; mRenderer.PointSize = 5; // the button that handles the new series of data creation mNewSeries = (Button) findViewById(R.id.new_series); mNewSeries.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); mAdd.OnClickListener = new OnClickListenerAnonymousInnerClassHelper2(this); }