public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				if (mBarcodeSelectionDialog == null)
				{
					mBarcodeSelectionDialog = (new AlertDialog.Builder(Draw1dBarcodeActivity.this)).setTitle([email protected]_selection).setItems(BARCODE_SELECTION_ITEMS, this).create();
				}
				mBarcodeSelectionDialog.show();
				break;

			case R.id.button2:
				if (mHriSelectionDialog == null)
				{
					mHriSelectionDialog = (new AlertDialog.Builder(Draw1dBarcodeActivity.this)).setTitle([email protected]).setItems(HRI_ITEMS, this).create();
				}
				mHriSelectionDialog.show();
				break;

			case R.id.button3:
				print1dBarcode();
				break;
			}
		}
예제 #2
0
파일: TabHost.cs 프로젝트: hakeemsm/XobotOS
		private void initTabHost()
		{
			setFocusableInTouchMode(true);
			setDescendantFocusability(FOCUS_AFTER_DESCENDANTS);
			mCurrentTab = -1;
			mCurrentView = null;
		}
		public override void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.buttonDirectIO:
				int selectedItemPosition = dataSpinner.SelectedItemPosition;

				try
				{
					posPrinter.directIO(1, null, DATA[selectedItemPosition]);
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Exception", e.Message);
				}
				break;

			case R.id.buttonBatteryStatus:
				try
				{
					posPrinter.directIO(2, null, null);
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Exception", e.Message);
				}
				break;
			}
		}
예제 #4
0
			public virtual int onExtractSmartClipData(View view, SlookSmartClipDataElement resultElement, SlookSmartClipCroppedArea arg2)
			{

				resultElement.addTag(new SlookSmartClipMetaTag(SlookSmartClipMetaTag.TAG_TYPE_PLAIN_TEXT, "This is custom textview."));
				resultElement.addTag(new SlookSmartClipMetaTag(SlookSmartClipMetaTag.TAG_TYPE_APP_DEEP_LINK, "slookdemos://SmartClip"));
				return SlookSmartClip.DataExtractionListener.EXTRACTION_DEFAULT;
			}
			public override void onClick(View arg0)
			{
				playClickAnim(arg0);
				switch (arg0.Id)
				{
					case R.id.img01:
						Log.i(TAG, "clicked iamge icon 01.");
						outerInstance.mainText.Text = "Selected pencil icon.";
						break;
					case R.id.img02:
						Log.i(TAG, "clicked iamge icon 02.");
						outerInstance.mainText.Text = "Selected pen icon.";
						break;
					case R.id.img03:
						Log.i(TAG, "clicked iamge icon 03.");
						outerInstance.mainText.Text = "Selected high lighter icon.";
						break;
					case R.id.img04:
						Log.i(TAG, "clicked iamge icon 04.");
						outerInstance.mainText.Text = "Selected calligraphy brush icon.";
						break;
					case R.id.img05:
						Log.i(TAG, "clicked iamge icon 05.");
						outerInstance.mainText.Text = "Selected brush icon.";
						break;
					case R.id.img06:
						Log.i(TAG, "clicked iamge icon 06.");
						outerInstance.mainText.Text = "Selected marker icon.";
						break;
				}
			}
			public virtual void onItemSelected(View arg0, int arg1, object arg2)
			{
				if (arg1 < 0)
				{
					return;
				}
				Uri uri = (Uri) arg2;
				Toast.makeText(outerInstance, uri.ToString(), Toast.LENGTH_SHORT).show();
			}
		public ResizeAnimation(View v, float fromWidth, float toWidth, float fromHeight, float toHeight, int duration)
		{
			mToHeight = toHeight;
			mToWidth = toWidth;
			mFromHeight = fromHeight;
			mFromWidth = fromWidth;
			mView = v;
			this.Duration = duration;
		}
예제 #8
0
		/// <summary>
		/// Creates a new CharacterPickerDialog that presents the specified
		/// <code>options</code> for insertion or replacement (depending on
		/// the sense of <code>insert</code>) into <code>text</code>.
		/// </summary>
		/// <remarks>
		/// Creates a new CharacterPickerDialog that presents the specified
		/// <code>options</code> for insertion or replacement (depending on
		/// the sense of <code>insert</code>) into <code>text</code>.
		/// </remarks>
		public CharacterPickerDialog(android.content.Context context, android.view.View view
			, android.text.Editable text, string options, bool insert) : base(context, [email protected]
			.style.Theme_Panel)
		{
			mView = view;
			mText = text;
			mOptions = options;
			mInsert = insert;
			mInflater = android.view.LayoutInflater.from(context);
		}
예제 #9
0
		/// <summary>Construct a new PopupMenu.</summary>
		/// <remarks>Construct a new PopupMenu.</remarks>
		/// <param name="context">Context for the PopupMenu.</param>
		/// <param name="anchor">
		/// Anchor view for this popup. The popup will appear below the anchor if there
		/// is room, or above it if there is not.
		/// </param>
		public PopupMenu(android.content.Context context, android.view.View anchor)
		{
			// TODO Theme?
			mContext = context;
			mMenu = new [email protected](context);
			mMenu.setCallback(this);
			mAnchor = anchor;
			mPopup = new [email protected](context, mMenu, anchor);
			mPopup.setCallback(this);
		}
		public virtual SlookAirButton createImageListWidgetFromView(View v)
		{

			SlookAirButton airButtonWidget = new SlookAirButton(v, new SlookAirButtonRecentMediaAdapter(v, null), SlookAirButton.UI_TYPE_LIST);
			airButtonWidget.ItemSelectListener = new ItemSelectListenerAnonymousInnerClassHelper(this);
			airButtonWidget.Gravity = SlookAirButton.GRAVITY_LEFT;
			airButtonWidget.Direction = SlookAirButton.DIRECTION_UPPER;
			airButtonWidget.setPosition(0, -50);

			return airButtonWidget;
		}
		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;
		}
			public override void onClick(View v)
			{
				Log.d(TAG, "Device " + outerInstance.mData.mSapaApp + " clicked.");
				if (outerInstance.mIsExpanded)
				{
					outerInstance.collapse();
				}
				else
				{
					outerInstance.expand();
				}
			}
			public virtual void onClick(View v)
			{
				Intent intent = new Intent();
				intent.Component = new ComponentName("com.samsung.android.app.pinboard", "com.samsung.android.app.pinboard.ui.PinboardActivity");
				try
				{
					startActivity(intent);
				}
				catch (ActivityNotFoundException)
				{
					Toast.makeText(outerInstance, "Pinboard application is not installed.", Toast.LENGTH_SHORT).show();
				}
			}
		public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				showExampleDialog();
				break;

			case R.id.button2:
				executeDirectIo();
				break;
			}
		}
		public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				showErrorCorrectionLevelDialog();
				break;

			case R.id.button2:
				printPdf417();
				break;
			}
		}
예제 #16
0
		public MenuPopupHelper(android.content.Context context, [email protected]
			 menu, android.view.View anchorView, bool overflowOnly)
		{
			mContext = context;
			mInflater = android.view.LayoutInflater.from(context);
			mMenu = menu;
			mOverflowOnly = overflowOnly;
			android.content.res.Resources res = context.getResources();
			mPopupMaxWidth = System.Math.Max(res.getDisplayMetrics().widthPixels / 2, res.getDimensionPixelSize
				([email protected]_prefDialogWidth));
			mAnchorView = anchorView;
			menu.addMenuPresenter(this);
		}
			public virtual void onClick(View v)
			{
				if (outerInstance.mIsEnabled)
				{
					((Button) v).Text = "Enable";
					outerInstance.mIsEnabled = false;
				}
				else
				{
					((Button) v).Text = "Disable";
					outerInstance.mIsEnabled = true;
				}
				outerInstance.mWritingBuddy.Enabled = outerInstance.mIsEnabled;
			}
			public override void onClick(View v)
			{
				switch (v.Id)
				{
					case R.id.callButton:
						outerInstance.callButtonClicked();
						break;

					case R.id.stopButton:
						outerInstance.stopButtonClicked();
						break;

				}
			}
			public virtual void onClick(View v)
			{
				if (outerInstance.mEnableImage)
				{
					outerInstance.mEnableImage = false;
					outerInstance.mWritingBuddy.ImageWritingListener = null;
					((Button) v).Text = "Enable Image Listener";
				}
				else
				{
					outerInstance.mEnableImage = true;
					outerInstance.mWritingBuddy.ImageWritingListener = new ImageWritingListenerAnonymousInnerClassHelper(this);
					((Button) v).Text = "Disable Image Listener";
				}
			}
			public virtual void onClick(View v)
			{
				if (outerInstance.mIsDefault)
				{
					outerInstance.mPointerIcon.setHoverIcon(outerInstance.mHoverTextView, Resources.getDrawable(R.drawable.pointericon));
					outerInstance.mIsDefault = false;
					((Button) v).Text = "Change default icon";
				}
				else
				{
					outerInstance.mPointerIcon.setHoverIcon(outerInstance.mHoverTextView, null);
					outerInstance.mIsDefault = true;
					((Button) v).Text = "Change special icon";
				}
			}
예제 #21
0
		/// <summary>
		/// @brief Create animator to hide selected view
		/// 
		/// The Animator will
		/// - Shrink layout width from full to 0
		/// - Set visibility of the view to GONE
		/// </summary>
		/// <param name="toHide">    View to be hidden </param>
		/// <param name="duration">  Animation duration
		/// </param>
		/// <returns>  Sequential animator to hide the element </returns>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET:
//ORIGINAL LINE: public android.animation.Animator createCollapseAnimator(final android.view.View toHide, long duration)
		public virtual Animator createCollapseAnimator(View toHide, long duration)
		{
			ValueAnimator collapseAnimator = ValueAnimator.ofFloat(1f, 0f);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final int fromDimension = toHide.getWidth();
			int fromDimension = toHide.Width;

			collapseAnimator.Duration = duration;
			collapseAnimator.addUpdateListener(new AnimatorUpdateListenerAnonymousInnerClassHelper(this, toHide, fromDimension));

			collapseAnimator.addListener(new FcAnimatorListenerAnonymousInnerClassHelper(this, toHide));

			return collapseAnimator;
		}
		public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				if (mFontSelectionDialog == null)
				{
					mFontSelectionDialog = (new AlertDialog.Builder(DrawTextActivity.this)).setTitle([email protected]_selection).setItems(FONT_SELECTION_ITEMS, this).create();
				}
				mFontSelectionDialog.show();
				break;

			case R.id.button2:
				printLabel();
				break;
			}
		}
		public override void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				setPageMode();
				break;

			case R.id.button2:
				printSample1();
				break;

			case R.id.button3:
				printSample2();
				break;
			}
		}
		public virtual void onClick(View v)
		{
			string data = mEditText.Text.ToString();

			EditText editText = (EditText) findViewById(R.id.editText2);
			if (editText.Text.ToString().Equals(""))
			{
				editText.Text = "200";
			}
			int horizontalPosition = int.Parse(editText.Text.ToString());

			editText = (EditText) findViewById(R.id.editText3);
			if (editText.Text.ToString().Equals(""))
			{
				editText.Text = "200";
			}
			int verticalPosition = int.Parse(editText.Text.ToString());

			MainActivity.mBixolonLabelPrinter.drawMaxicode(data, horizontalPosition, verticalPosition, mMode);
			MainActivity.mBixolonLabelPrinter.print(1, 1);
		}
예제 #25
0
			public override void onClick(View v)
			{
				if (outerInstance.mService != null && outerInstance.mService.get() != null && outerInstance.mVisibleAppInfo != null)
				{
					try
					{
						outerInstance.mService.get().decreaseVolume(outerInstance.mVisibleAppInfo.App);
						if (outerInstance.mService.get().isMinVolume(outerInstance.mVisibleAppInfo.App))
						{
							outerInstance.setMinVolumeStateOnButtons();
						}
						else
						{
							outerInstance.setBetweenVolumeStateOnButtons();
						}
					}
					catch (System.NullReferenceException)
					{
						;
					}
				}
			}
		public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.buttonBrowse:
				FileListDialogFragment.showDialog(FragmentManager);
				break;

			case R.id.buttonGo:
				try
				{
					posPrinter.updateFirmware(fileNameEditText.Text.ToString());
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}
				break;
			}
		}
예제 #27
0
 public override android.view.ActionMode startActionModeForChild(android.view.View
                                                                 sourceView, android.view.ActionMode.Callback cb)
 {
     throw new System.NotImplementedException();
 }
예제 #28
0
 internal virtual void transformViewForTransition(int fromIndex, int toIndex, android.view.View
                                                  view, bool animate_1)
 {
     throw new System.NotImplementedException();
 }
예제 #29
0
 public override void onClick(View v)
 {
     outerInstance.loginClicked();
 }
예제 #30
0
 private void runDisappearingTransition(android.view.ViewGroup parent, android.view.View
                                        child)
 {
     throw new System.NotImplementedException();
 }
예제 #31
0
 public ScreensharingCapturer(Context context, View view)
 {
     this.mContext    = context;
     this.contentView = view;
 }
예제 #32
0
 public override android.view.View getView(int position, android.view.View convertView
                                           , android.view.ViewGroup parent)
 {
     throw new System.NotImplementedException();
 }
예제 #33
0
 private int getConvertViewTypeId(android.view.View convertView)
 {
     throw new System.NotImplementedException();
 }
예제 #34
0
 internal android.widget.RemoteViewsAdapter.RemoteViewsFrameLayout createLoadingView
     (int position, android.view.View convertView, android.view.ViewGroup parent)
 {
     throw new System.NotImplementedException();
 }
예제 #35
0
 protected internal virtual void prepareView(android.view.View view)
 {
     throw new System.NotImplementedException();
 }
예제 #36
0
 protected internal override bool drawChild(android.graphics.Canvas canvas, android.view.View
                                            child, long drawingTime)
 {
     throw new System.NotImplementedException();
 }
		public override void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.buttonOpen:
				string logicalDeviceName = logicalNameEditText.Text.ToString();
				try
				{
					cashDrawer.open(logicalDeviceName);
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}

				try
				{
					deviceEnabledCheckBox.Checked = cashDrawer.DeviceEnabled;
				}
				catch (JposException e)
				{
					// TODO Auto-generated catch block
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
				}
				break;

			case R.id.buttonClaim:
				try
				{
					cashDrawer.claim(0);
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}
				break;

			case R.id.buttonRelease:
				try
				{
					cashDrawer.release();
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}
				break;

			case R.id.buttonClose:
				try
				{
					cashDrawer.close();
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}
				break;

			case R.id.buttonInfo:
				info();
				break;

			case R.id.buttonCheckHealth:
				checkHealth();
				break;

			case R.id.buttonOpenDrawer:
				try
				{
					cashDrawer.openDrawer();
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}
				break;

			case R.id.buttonGetDrawerOpened:
				try
				{
					if (cashDrawer.DrawerOpened)
					{
						deviceMessagesTextView.append("Cash drawer is open.\n");
					}
					else
					{
						deviceMessagesTextView.append("Cash drawer is closed.\n");
					}
				}
				catch (JposException e)
				{
					Console.WriteLine(e.ToString());
					Console.Write(e.StackTrace);
					MessageDialogFragment.showDialog(FragmentManager, "Excepction", e.Message);
				}
				break;
			}
		}
예제 #38
0
 public virtual void onItemClick(object parent, android.view.View view, int position
                                 , long id)
 {
     mMenu.performItemAction((([email protected])mAdapter.getItem
                                  (position)), 0);
 }
예제 #39
0
 private void addChild(android.view.View child)
 {
     throw new System.NotImplementedException();
 }
예제 #40
0
 internal virtual android.view.ViewGroup.LayoutParams createOrReuseLayoutParams(android.view.View
                                                                                v)
 {
     throw new System.NotImplementedException();
 }
예제 #41
0
 public void onClick(android.view.View v)
 {
     throw new System.NotImplementedException();
 }
예제 #42
0
 public virtual void hideChild(android.view.ViewGroup parent, android.view.View child
                               )
 {
     throw new System.NotImplementedException();
 }
예제 #43
0
 internal android.widget.AdapterViewAnimator.ViewAndMetaData getMetaDataForChild(android.view.View
                                                                                 child)
 {
     throw new System.NotImplementedException();
 }
예제 #44
0
 /// <summary>Bind an existing view to the child data pointed to by cursor</summary>
 /// <param name="view">Existing view, returned earlier by newChildView</param>
 /// <param name="context">Interface to application's global information</param>
 /// <param name="cursor">
 /// The cursor from which to get the data. The cursor is
 /// already moved to the correct position.
 /// </param>
 /// <param name="isLastChild">Whether the child is the last child within its group.</param>
 protected internal abstract void bindChildView(android.view.View view, android.content.Context
                                                context, android.database.Cursor cursor, bool isLastChild);
예제 #45
0
 internal virtual void applyTransformForChildAtIndex(android.view.View child, int
                                                     relativeIndex)
 {
     throw new System.NotImplementedException();
 }
예제 #46
0
 public virtual void setSource(android.view.View source)
 {
     throw new System.NotImplementedException();
 }
예제 #47
0
 internal ViewAndMetaData(AdapterViewAnimator _enclosing, android.view.View view,
                          int relativeIndex, int adapterPosition, long itemId)
 {
     throw new System.NotImplementedException();
 }
예제 #48
0
 public void onLayoutChange(android.view.View v, int left, int top, int right, int
                            bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)
 {
     throw new System.NotImplementedException();
 }
예제 #49
0
 public virtual void onClick(View arg0)
 {
     outerInstance.printDataMatrix();
 }
예제 #50
0
 private void runChangeTransition(android.view.ViewGroup parent, android.view.View
                                  newView, int changeReason)
 {
     throw new System.NotImplementedException();
 }
예제 #51
0
		public virtual void setTabContainer([email protected]
			 tabView)
		{
			if (mTabContainer != null)
			{
				removeView(mTabContainer);
			}
			mTabContainer = tabView;
			if (tabView != null)
			{
				addView(tabView);
				android.view.ViewGroup.LayoutParams lp = tabView.getLayoutParams();
				lp.width = android.view.ViewGroup.LayoutParams.MATCH_PARENT;
				lp.height = android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
				tabView.setAllowCollapse(false);
			}
		}
예제 #52
0
 public virtual void setAnchorView(android.view.View view)
 {
     throw new System.NotImplementedException();
 }
예제 #53
0
 private void initControllerView(android.view.View v)
 {
     throw new System.NotImplementedException();
 }
예제 #54
0
 public override void setCustomView(android.view.View view)
 {
     throw new System.NotImplementedException();
 }
예제 #55
0
		public override void onClick(View v)
		{
			if (v != mIcon)
			{
				return;
			}

			if (mDeviceFinder != null)
			{

				int numDevices = mDeviceFinder.getDeviceList(mType).size();

				// If no devices found, try refreshing the list.
				if (numDevices == 0)
				{
					mDeviceFinder.rescan();
				}

				// If we are already active, disable allshare
				if (mActive)
				{
					Active = false;
					if (mPickerListener != null)
					{
						mPickerListener.onAllShareDisabled();
					}
					return;
				}
			}

			// Devices are available, and we are not connected
			// Ask user to select device
			showPickerDialog();
		}
예제 #56
0
 internal virtual void hideTapFeedback(android.view.View v)
 {
     throw new System.NotImplementedException();
 }
		public virtual void onClick(View v)
		{
			switch (v.Id)
			{
			case R.id.button1:
				printBitmap();
				break;

			case R.id.button2:
				pickAlbum();
				break;
			}
		}
예제 #58
0
 private void setupChangeAnimation(android.view.ViewGroup parent, int changeReason
                                   , android.animation.Animator baseAnimator, long duration, android.view.View child
                                   )
 {
     throw new System.NotImplementedException();
 }
예제 #59
0
 /// <summary>Bind an existing view to the group data pointed to by cursor.</summary>
 /// <remarks>Bind an existing view to the group data pointed to by cursor.</remarks>
 /// <param name="view">Existing view, returned earlier by newGroupView.</param>
 /// <param name="context">Interface to application's global information</param>
 /// <param name="cursor">
 /// The cursor from which to get the data. The cursor is
 /// already moved to the correct position.
 /// </param>
 /// <param name="isExpanded">Whether the group is expanded.</param>
 protected internal abstract void bindGroupView(android.view.View view, android.content.Context
                                                context, android.database.Cursor cursor, bool isExpanded);
예제 #60
0
 public bool onTouch(android.view.View v, android.view.MotionEvent @event)
 {
     throw new System.NotImplementedException();
 }