コード例 #1
0
		public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{

			View rootView = inflater.inflate(com.opentok.android.demo.opentoksamples.R.layout.layout_fragment_sub_control, container, false);

			mSubContainer = (RelativeLayout) openTokActivity.findViewById(com.opentok.android.demo.opentoksamples.R.id.fragment_sub_container);

			showSubscriberWidget(mSubscriberWidgetVisible, false);

			mSubscriberMute = (ImageButton) rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.muteSubscriber);
			mSubscriberMute.OnClickListener = this;

			mSubscriberName = (TextView) rootView.findViewById(com.opentok.android.demo.opentoksamples.R.id.subscriberName);

			if (openTokActivity.Resources.Configuration.orientation == Configuration.ORIENTATION_LANDSCAPE)
			{
				RelativeLayout.LayoutParams @params = (RelativeLayout.LayoutParams) container.LayoutParams;

				DisplayMetrics metrics = new DisplayMetrics();
				openTokActivity.WindowManager.DefaultDisplay.getMetrics(metrics);

				@params.width = metrics.widthPixels - openTokActivity.dpToPx(48);
				container.LayoutParams = @params;
			}

			return rootView;
		}
コード例 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override public android.view.View onCreateView(android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, @Nullable android.os.Bundle savedInstanceState)
		public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			View view = inflater.inflate(R.layout.fragment_smart_card_rw, container, false);

			SharedPreferences settings = Activity.getSharedPreferences(MainActivity.PREFS_NAME, Context.MODE_PRIVATE);
			logicalNameEditText = (EditText) view.findViewById(R.id.editTextLogicalName);
			logicalNameEditText.Text = settings.getString(MainActivity.KEY_LOGICAL_NAME_SMART_CARD_RW, getString([email protected]_card_rw));

			view.findViewById(R.id.buttonOpen).OnClickListener = this;
			view.findViewById(R.id.buttonClaim).OnClickListener = this;
			view.findViewById(R.id.buttonRelease).OnClickListener = this;
			view.findViewById(R.id.buttonClose).OnClickListener = this;
			view.findViewById(R.id.buttonInfo).OnClickListener = this;
			view.findViewById(R.id.buttonCheckHealth).OnClickListener = this;
			view.findViewById(R.id.buttonReadData).OnClickListener = this;

			CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkBoxDeviceEnabled);
			checkBox.OnCheckedChangeListener = this;

			RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.radioGroup1);
			radioGroup.OnCheckedChangeListener = this;
			radioGroup = (RadioGroup) view.findViewById(R.id.radioGroup2);
			radioGroup.OnCheckedChangeListener = this;

			readDataTextView = (TextView) view.findViewById(R.id.textViewReadData);
			stateTextView = (TextView) view.findViewById(R.id.textViewState);
			return view;
		}
コード例 #3
0
		public override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.activity_information;

			Slook slook = new Slook();
			LinearLayout l = (LinearLayout) findViewById(R.id.information);

			try
			{
				slook.initialize(this);
			}
			catch (SsdkUnsupportedException e)
			{
				l.addView(createTextView(e.ToString()));
				return;
			}

			l.addView(createTextView("*VersionCode:" + slook.VersionCode));
			l.addView(createTextView("*Feature"));
			l.addView(createTextView("   - AirButton:" + slook.isFeatureEnabled(Slook.AIRBUTTON)));
			l.addView(createTextView("   - PointerIcon:" + slook.isFeatureEnabled(Slook.SPEN_HOVER_ICON)));
			l.addView(createTextView("   - SmartClip:" + slook.isFeatureEnabled(Slook.SMARTCLIP)));
			l.addView(createTextView("   - WritingBuddy:" + slook.isFeatureEnabled(Slook.WRITINGBUDDY)));
		}
コード例 #4
0
		public override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			Bundle args = Arguments;
			colour = args.getInt("colour");
			identifier = args.getInt("identifier");
		}
コード例 #5
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);

			ContentView = R.layout.room;

			ActionBar actionBar = ActionBar;
			actionBar.HomeButtonEnabled = true;
			actionBar.DisplayHomeAsUpEnabled = true;

			mSession = new MySession(this);

			mMessageEditText = (EditText) findViewById(R.id.message);

			ViewGroup preview = (ViewGroup) findViewById(R.id.preview);
			mSession.PreviewView = preview;

			mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

			ViewPager playersView = (ViewPager) findViewById(R.id.pager);
			mSession.PlayersViewContainer = playersView;
			mSession.setMessageView((TextView) findViewById(R.id.messageView), (ScrollView) findViewById(R.id.scroller));

			mSession.connect();
		}
コード例 #6
0
		public override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);

			cashDrawer = new CashDrawer();
			cashDrawer.addStatusUpdateListener(this);
		}
コード例 #7
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override public android.view.View onCreateView(android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, @Nullable android.os.Bundle savedInstanceState)
		public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			View view = inflater.inflate(R.layout.fragment_cash_drawer, container, false);

			SharedPreferences settings = Activity.getSharedPreferences(MainActivity.PREFS_NAME, Context.MODE_PRIVATE);
			logicalNameEditText = (EditText) view.findViewById(R.id.editTextLogicalName);
			logicalNameEditText.Text = settings.getString(MainActivity.KEY_LOGICAL_NAME_POS_PRINTER, getString([email protected]_drawer));

			view.findViewById(R.id.buttonOpen).OnClickListener = this;
			view.findViewById(R.id.buttonClaim).OnClickListener = this;
			view.findViewById(R.id.buttonRelease).OnClickListener = this;
			view.findViewById(R.id.buttonClose).OnClickListener = this;
			view.findViewById(R.id.buttonInfo).OnClickListener = this;
			view.findViewById(R.id.buttonCheckHealth).OnClickListener = this;

			deviceEnabledCheckBox = (CheckBox) view.findViewById(R.id.checkBoxDeviceEnabled);
			deviceEnabledCheckBox.OnCheckedChangeListener = this;

			view.findViewById(R.id.buttonOpenDrawer).OnClickListener = this;
			view.findViewById(R.id.buttonGetDrawerOpened).OnClickListener = this;

			stateTextView = (TextView) view.findViewById(R.id.textViewState);

			deviceMessagesTextView = (TextView) view.findViewById(R.id.textViewDeviceMessages);
			deviceMessagesTextView.MovementMethod = new ScrollingMovementMethod();
			deviceMessagesTextView.VerticalScrollBarEnabled = true;
			return view;
		}
コード例 #8
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);

			// Generate a key
			// IMPORTANT! This is a silly way to generate a key. It is also never stored.
			// For proper key handling please consult:
			// * https://developer.android.com/training/articles/keystore.html
			// * http://nelenkov.blogspot.dk/2012/05/storing-application-secrets-in-androids.html
			sbyte[] key = new sbyte[64];
			(new SecureRandom()).NextBytes(key);
			RealmConfiguration realmConfiguration = (new RealmConfiguration.Builder(this)).encryptionKey(key).build();

			// Start with a clean slate every time
			Realm.deleteRealm(realmConfiguration);

			// Open the Realm with encryption enabled
			realm = Realm.getInstance(realmConfiguration);

			// Everything continues to work as normal except for that the file is encrypted on disk
			realm.beginTransaction();
			Person person = realm.createObject(typeof(Person));
			person.Name = "Happy Person";
			person.Age = 14;
			realm.commitTransaction();

			person = realm.@where(typeof(Person)).findFirst();
			Log.i(TAG, string.Format("Person name: {0}", person.Name));
		}
コード例 #9
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			ContentView = R.layout.activity_main;
			brightcoveVideoView = (BrightcoveVideoView) findViewById(R.id.brightcove_video_view);
			base.onCreate(savedInstanceState);

			vmapComponent = new VMAPComponent(brightcoveVideoView);

			View view = findViewById(R.id.ad_frame);

			if ((view != null) && (view is ViewGroup))
			{
				vmapComponent.addCompanionContainer((ViewGroup) view);
			}
			else
			{
				Log.e(TAG, "Companion container must be an instance of a ViewGroup");
			}

			Video video = Video.createVideo("http://media.w3.org/2010/05/sintel/trailer.mp4", DeliveryType.MP4);
			video.Properties.put(VMAPComponent.VMAP_URL, "http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpost&cmsid=496&vid=short_onecue&correlator=");

			brightcoveVideoView.add(video);
			brightcoveVideoView.start();
		}
コード例 #10
0
		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;
		}
コード例 #11
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.activity_draw_circle;

			Button button = (Button) findViewById(R.id.button1);
			button.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this);
		}
コード例 #12
0
		public override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.activity_screen_capturer;
			localVideoView = (VideoView) findViewById(R.id.local_video);

			localMedia = LocalMedia.create(this);
		}
コード例 #13
0
		internal static void showDialog(FragmentManager manager, string title, string[] items)
		{
			ListDialogFragment listDialogFragment = new ListDialogFragment();
			Bundle args = new Bundle();
			args.putString(KEY_TITLE, title);
			args.putStringArray(KEY_ITEMS, items);
			listDialogFragment.Arguments = args;
			listDialogFragment.show(manager, TAG);
		}
コード例 #14
0
	  protected internal override void onSaveInstanceState(Bundle outState)
	  {
		base.onSaveInstanceState(outState);
		// save the current data, for instance when changing screen orientation
		outState.putSerializable("dataset", mDataset);
		outState.putSerializable("renderer", mRenderer);
		outState.putSerializable("current_series", mCurrentSeries);
		outState.putSerializable("current_renderer", mCurrentRenderer);
	  }
コード例 #15
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.activity_main;
			mBridge = new SapaAppService(this);
			mBridge.addConnectionListener(mListener);
			mBridge.connect();
			mFloatingController = ((FloatingController) findViewById(R.id.jam_control));
		}
コード例 #16
0
			public override Fragment getItem(int position)
			{
				Fragment fragment = new ColourFragment();
				Bundle args = new Bundle();
				args.putInt("colour", colours[position]);
				args.putInt("identifier", position);
				fragment.Arguments = args;
				return fragment;
			}
コード例 #17
0
		internal static void showDialog(FragmentManager manager, string title, string message)
		{
			MessageDialogFragment messageDialogFragment = new MessageDialogFragment();
			Bundle args = new Bundle();
			args.putString(KEY_TITLE, title);
			args.putString(KEY_MESSAGE, message);
			messageDialogFragment.Arguments = args;
			messageDialogFragment.show(manager, TAG);
		}
コード例 #18
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.layout_textchat_activity;

			mLoadingBar = (ProgressBar) findViewById(R.id.load_spinner);
			mLoadingBar.Visibility = View.VISIBLE;

			sessionConnect();
		}
コード例 #19
0
	  protected internal override void onRestoreInstanceState(Bundle savedState)
	  {
		base.onRestoreInstanceState(savedState);
		// restore the current data, for instance when changing the screen
		// orientation
		mDataset = (XYMultipleSeriesDataset) savedState.getSerializable("dataset");
		mRenderer = (XYMultipleSeriesRenderer) savedState.getSerializable("renderer");
		mCurrentSeries = (XYSeries) savedState.getSerializable("current_series");
		mCurrentRenderer = (XYSeriesRenderer) savedState.getSerializable("current_renderer");
	  }
コード例 #20
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.activity_main;

			if (findViewById(R.id.container) != null)
			{
				SupportFragmentManager.beginTransaction().add(R.id.container, new DeviceCategoryListFragment()).commit();
			}
		}
コード例 #21
0
		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;
		}
コード例 #22
0
		public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			TextView v = new TextView(Activity);
			v.Gravity = Gravity.CENTER;
			v.TextSize = 40;
			v.TextColor = Color.BLACK;
			v.BackgroundColor = colour;
			v.Text = "Fragment ID: " + identifier;
			return v;
		}
コード例 #23
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			ContentView = R.layout.activity_main;
			base.onCreate(savedInstanceState);

			// Views are being set from the layout.

			this.mVolDownButton = (ImageButton) findViewById(R.id.vDownButton);
			this.mVolUpButton = (ImageButton) findViewById(R.id.vUpButton);
			this.mVolTextView = (TextView) findViewById(R.id.current_value_textview);
		}
コード例 #24
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Override @NonNull public android.app.Dialog onCreateDialog(android.os.Bundle savedInstanceState)
		public override Dialog onCreateDialog(Bundle savedInstanceState)
		{
			Bundle args = Arguments;
			string title = args.getString(KEY_TITLE);
			string message = args.getString(KEY_MESSAGE);

			AlertDialog.Builder builder = new AlertDialog.Builder(Activity);
			builder.setTitle(title).setMessage(message).setPositiveButton([email protected], new OnClickListenerAnonymousInnerClassHelper(this));

			return builder.create();
		}
コード例 #25
0
		public virtual SlookAirButton createRecipientListWidgetFromView(View v)
		{
			Bundle option = new Bundle();
			option.putString("MIME_TYPE", "vnd.android.cursor.item/phone_v2");
			SlookAirButton airButtonWidget = new SlookAirButton(v, new SlookAirButtonFrequentContactAdapter(v, null), SlookAirButton.UI_TYPE_LIST);
			// airButtonWidget.steDir
			airButtonWidget.Direction = SlookAirButton.DIRECTION_UPPER;
			airButtonWidget.ItemSelectListener = new ItemSelectListenerAnonymousInnerClassHelper2(this);

			return airButtonWidget;
		}
コード例 #26
0
		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);
		}
コード例 #27
0
		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);
		}
コード例 #28
0
		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;
		}
コード例 #29
0
		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);
		}
コード例 #30
0
		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;
		}
コード例 #31
0
 protected internal override void onCreate(Bundle savedInstanceState)
 {
     base.onCreate(savedInstanceState);
     ApplicationContext.bindService(new Intent(this, typeof(SinchService)), this, BIND_AUTO_CREATE);
 }
コード例 #32
0
 public abstract void setMetadata(int arg1, android.os.Bundle arg2);
コード例 #33
0
ファイル: IWindow.cs プロジェクト: zhouweiaccp/XobotOS
 public virtual void dispatchWallpaperCommand(string action, int x, int y, int z,
                                              android.os.Bundle extras, bool sync)
 {
     throw new System.NotImplementedException();
 }
コード例 #34
0
 public virtual void setMetadata(int generationId, android.os.Bundle metadata)
 {
     throw new System.NotImplementedException();
 }
コード例 #35
0
ファイル: TabActivity.cs プロジェクト: zhouweiaccp/XobotOS
 protected internal override void onPostCreate(android.os.Bundle icicle)
 {
     throw new System.NotImplementedException();
 }
コード例 #36
0
ファイル: TabActivity.cs プロジェクト: zhouweiaccp/XobotOS
 protected internal override void onSaveInstanceState(android.os.Bundle outState)
 {
     throw new System.NotImplementedException();
 }
コード例 #37
0
        public override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = inflater.inflate(R.layout.fragment_pos_printer_direct_io, container, false);

            view.findViewById(R.id.buttonDirectIO).OnClickListener      = this;
            view.findViewById(R.id.buttonBatteryStatus).OnClickListener = this;

            dataSpinner = (Spinner)view.findViewById(R.id.spinnerData);
            ArrayAdapter <CharSequence> adapter = new ArrayAdapter <CharSequence>(Activity, android.R.layout.simple_spinner_item, DATA_STRING);

            adapter.DropDownViewResource = android.R.layout.simple_spinner_dropdown_item;
            dataSpinner.Adapter          = adapter;

            deviceMessagesTextView = (TextView)view.findViewById(R.id.textViewDeviceMessages);
            deviceMessagesTextView.MovementMethod           = new ScrollingMovementMethod();
            deviceMessagesTextView.VerticalScrollBarEnabled = true;

            return(view);
        }
コード例 #38
0
 public virtual void setAllMetadata(int generationId, android.os.Bundle metadata,
                                    android.graphics.Bitmap artwork)
 {
     throw new System.NotImplementedException();
 }
コード例 #39
0
 void android.location.LocationListener.onStatusChanged(java.lang.String arg0, int arg1, android.os.Bundle arg2)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.location.LocationListener_._onStatusChanged4768, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.location.LocationListener_.staticClass, global::android.location.LocationListener_._onStatusChanged4768, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
     }
 }
コード例 #40
0
 public abstract void getSpellCheckerService(string arg1, string arg2, [email protected]
                                             arg3, [email protected] arg4, android.os.Bundle
                                             arg5);
コード例 #41
0
 public abstract void setAllMetadata(int arg1, android.os.Bundle arg2, android.graphics.Bitmap
                                     arg3);
コード例 #42
0
 public virtual void getSpellCheckerService(string sciId, string locale, [email protected]
                                            tsListener, [email protected] scListener
                                            , android.os.Bundle bundle)
 {
     throw new System.NotImplementedException();
 }
コード例 #43
0
ファイル: ListActivity.cs プロジェクト: zhouweiaccp/XobotOS
 protected internal override void onRestoreInstanceState(android.os.Bundle state)
 {
     ensureList();
     base.onRestoreInstanceState(state);
 }
コード例 #44
0
ファイル: MainActivity.cs プロジェクト: zhouweiaccp/XobotOS
        protected override void onCreate(android.os.Bundle savedInstanceState)
        {
            base.onCreate(savedInstanceState);

            setContentView(R.layout.main);
        }
コード例 #45
0
        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);
        }