Example #1
0
 public virtual void onProgressChanged(SeekBar seekBar, int progress, bool fromUser)
 {
     if (seekBar == mHorizontalMultiplierSeekBar)
     {
         mHorizontalMultiplier = progress + 1;
     }
     else if (seekBar == mVerticalMultiplierSeekBar)
     {
         mVerticalMultiplier = progress + 1;
     }
 }
Example #2
0
 void android.widget.SeekBar.OnSeekBarChangeListener.onStopTrackingTouch(android.widget.SeekBar arg0)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.widget.SeekBar.OnSeekBarChangeListener_._onStopTrackingTouch11900, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.widget.SeekBar.OnSeekBarChangeListener_.staticClass, global::android.widget.SeekBar.OnSeekBarChangeListener_._onStopTrackingTouch11900, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
     }
 }
Example #3
0
 void android.widget.SeekBar.OnSeekBarChangeListener.onProgressChanged(android.widget.SeekBar arg0, int arg1, bool arg2)
 {
     global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
     if (!IsClrObject)
     {
         @__env.CallVoidMethod(this.JvmHandle, global::android.widget.SeekBar.OnSeekBarChangeListener_._onProgressChanged11898, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
     }
     else
     {
         @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::android.widget.SeekBar.OnSeekBarChangeListener_.staticClass, global::android.widget.SeekBar.OnSeekBarChangeListener_._onProgressChanged11898, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
     }
 }
Example #4
0
        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_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;


		}
Example #6
0
 public virtual void onStopTrackingTouch(SeekBar seekBar)
 {
     // TODO Auto-generated method stub
 }
Example #7
0
        private void printText()
        {
            EditText editText = (EditText)findViewById(R.id.editText1);
            string   text     = editText.Text.ToString();

            int        alignment  = BixolonPrinter.ALIGNMENT_LEFT;
            RadioGroup radioGroup = (RadioGroup)findViewById(R.id.radioGroup1);

            switch (radioGroup.CheckedRadioButtonId)
            {
            case R.id.radio0:
                alignment = BixolonPrinter.ALIGNMENT_LEFT;
                break;

            case R.id.radio1:
                alignment = BixolonPrinter.ALIGNMENT_CENTER;
                break;

            case R.id.radio2:
                alignment = BixolonPrinter.ALIGNMENT_RIGHT;
                break;
            }

            int attribute = 0;

            radioGroup = (RadioGroup)findViewById(R.id.radioGroup2);
            switch (radioGroup.CheckedRadioButtonId)
            {
            case R.id.radio3:
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_FONT_A;
                break;

            case R.id.radio4:
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_FONT_B;
                break;

            case R.id.radio5:
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_FONT_C;
                break;
            }

            radioGroup = (RadioGroup)findViewById(R.id.radioGroup3);
            switch (radioGroup.CheckedRadioButtonId)
            {
            case R.id.radio7:
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_UNDERLINE1;
                break;

            case R.id.radio8:
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_UNDERLINE2;
                break;
            }

            CheckBox checkBox = (CheckBox)findViewById(R.id.checkBox1);

            if (checkBox.Checked)
            {
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_EMPHASIZED;
            }

            checkBox = (CheckBox)findViewById(R.id.checkBox2);
            if (checkBox.Checked)
            {
                attribute |= BixolonPrinter.TEXT_ATTRIBUTE_REVERSE;
            }

            int     size    = 0;
            SeekBar seekBar = (SeekBar)findViewById(R.id.seekBar1);

            switch (seekBar.Progress)
            {
            case 0:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL1;
                break;

            case 1:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL2;
                break;

            case 2:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL3;
                break;

            case 3:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL4;
                break;

            case 4:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL5;
                break;

            case 5:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL6;
                break;

            case 6:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL7;
                break;

            case 7:
                size = BixolonPrinter.TEXT_SIZE_HORIZONTAL8;
                break;
            }

            seekBar = (SeekBar)findViewById(R.id.seekBar2);
            switch (seekBar.Progress)
            {
            case 0:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL1;
                break;

            case 1:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL2;
                break;

            case 2:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL3;
                break;

            case 3:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL4;
                break;

            case 4:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL5;
                break;

            case 5:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL6;
                break;

            case 6:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL7;
                break;

            case 7:
                size |= BixolonPrinter.TEXT_SIZE_VERTICAL8;
                break;
            }

            checkBox = (CheckBox)findViewById(R.id.checkBox3);
            bool formFeed = checkBox.Checked;

            checkBox = (CheckBox)findViewById(R.id.checkBox4);
            if (checkBox.Checked)
            {
                MainActivity.mBixolonPrinter.printDotMatrixText(text, alignment, attribute, size, false);
            }
            else
            {
                if (formFeed)
                {
                    MainActivity.mBixolonPrinter.printText(text, alignment, attribute, size, false);
                    MainActivity.mBixolonPrinter.formFeed(false);
                }
                else
                {
                    MainActivity.mBixolonPrinter.printText(text, alignment, attribute, size, false);
                }
            }
            MainActivity.mBixolonPrinter.lineFeed(3, false);

            MainActivity.mBixolonPrinter.cutPaper(true);
            MainActivity.mBixolonPrinter.kickOutDrawer(BixolonPrinter.DRAWER_CONNECTOR_PIN5);
        }
		public virtual void onStopTrackingTouch(SeekBar seekBar)
		{
			// TODO Auto-generated method stub

		}
		public virtual void onProgressChanged(SeekBar seekBar, int progress, bool fromUser)
		{
			if (seekBar == mHorizontalMultiplierSeekBar)
			{
				mHorizontalMultiplier = progress + 1;
			}
			else if (seekBar == mVerticalMultiplierSeekBar)
			{
				mVerticalMultiplier = progress + 1;
			}
		}
Example #10
0
 public void onStopTrackingTouch(android.widget.SeekBar bar)
 {
     throw new System.NotImplementedException();
 }
Example #11
0
 public void onProgressChanged(android.widget.SeekBar bar, int progress, bool fromuser
                               )
 {
     throw new System.NotImplementedException();
 }