Inheritance: java.lang.Object, android.graphics.drawable.Drawable.Callback, android.view.KeyEvent.Callback, android.view.accessibility.AccessibilityEventSource
Example #1
0
        public void onClick(android.view.View arg0)
        {
            Thread t = new Thread(() =>
            {
                try {
                    MonoJavaBridge.JavaBridge.Log("1");
                    HttpWebRequest req = WebRequest.Create("http://api.twitter.com/1/statuses/home_timeline.json") as HttpWebRequest;
                    MonoJavaBridge.JavaBridge.Log("2");
                    req.Credentials = new NetworkCredential("herrodere", "foobar");
                    var resp        = req.GetResponse();
                    var respStream  = resp.GetResponseStream();
                    byte[] b        = new byte[100];
                    respStream.Read(b, 0, b.Length);
                    var text = new System.IO.StreamReader(respStream).ReadToEnd();
                    Console.WriteLine(text);
                    result = text;
                    MonoJavaBridge.JavaBridge.Log("done");
                    mHandler.post(this);
                    JNIEnv.defaultVM.DetachCurrentThread();
                } catch (Exception ex) {
                    Console.WriteLine(ex.Message);
                }
            });

            t.Start();
        }
Example #2
0
		public override void onListItemClick (ListView list, View v, int pos, long id)
		{
			var item = (Map<String,Object>)list.getItemAtPosition (pos);
			var monkey = (Monkey)item.get ("monkey");

			if (listener != null)
				listener.onMonkeySelected (monkey);
		}
Example #3
0
		protected override void onListItemClick (ListView l, View v, int position, long id)
		{
			var item = (Map<String,Object>)l.getItemAtPosition (position);
			var type = (Type)item.get("type");

			var intent = new Intent (this, typeof (TestActivity));
			intent.putExtra ("type", type.FullName);
			startActivity (intent);
		}
Example #4
0
		public void onClick (View v)
		{
			finish ();
		}
            public void onClick(View v)
            {
                that.StartPendingAlarm(NotifyServiceFromTimer.Class, 1000 * 8, 1000 * 41);


                that.startservice.setEnabled(false);
                that.stopservice.setEnabled(true);
            }
            public void onClick(View v)
            {
                that.CancelPendingAlarm(NotifyServiceFromTimer.Class);


                that.startservice.setEnabled(true);
                that.stopservice.setEnabled(false);

            }
Example #7
0
		public void recomputeViewAttributes (View child)
		{
			throw new NotImplementedException ();
		}
Example #8
0
		public void requestTransparentRegion (View child)
		{
			throw new NotImplementedException ();
		}
 public void setView(View view)
 {
 }
Example #10
0
 public void setOnTouchListener(View.OnTouchListener l)
 { }
Example #11
0
		public bool showContextMenuForChild (View originalView)
		{
			return false;
		}
Example #12
0
		public ActionMode startActionModeForChild (View originalView, ActionMode.Callback callback)
		{
			throw new NotImplementedException ();
		}
Example #13
0
		public void bringChildToFront (View child)
		{
			throw new NotImplementedException ();
		}
Example #14
0
		public void focusableViewAvailable (View v)
		{
			if (view == null)
				return;

			if (!view.hasFocus ()) {
				v.requestFocus ();
			}
		}
Example #15
0
		public View focusSearch (View v, int direction)
		{
			// FIXME
			return null;
		}
Example #16
0
		public bool getChildVisibleRect (View child, Rect r, Point offset)
		{
			throw new NotImplementedException ();
		}
Example #17
0
		public void clearChildFocus (View child)
		{
			View old_focus = focused;

			focused = null;
			if (view != null && !view.hasFocus ()) {
				// If a view gets the focus, the listener will be invoked from requestChildFocus()
				if (!view.requestFocus(View.FOCUS_FORWARD))
					attach_info.mTreeObserver.dispatchOnGlobalFocusChange(old_focus, null);
			} else if (old_focus != null) {
				attach_info.mTreeObserver.dispatchOnGlobalFocusChange(old_focus, null);
			}
		}
        public void createVrToast(View toastView)
        {
            // Find how big the toast wants to be.
            toastView.measure(0, 0);
            toastView.layout(0, 0, toastView.getMeasuredWidth(),
                    toastView.getMeasuredHeight());

            Log.v(TAG,
                    "toast size:" + toastView.getWidth() + "x"
                            + toastView.getHeight());
            toastTexture.setDefaultBufferSize(toastView.getWidth(),
                    toastView.getHeight());
            try
            {
                Canvas canvas = toastSurface.lockCanvas(null);
                toastView.draw(canvas);
                toastSurface.unlockCanvasAndPost(canvas);
            }
            catch
            {
                Log.e(TAG, "lockCanvas threw exception");
            }

            nativePopup(appPtr, toastView.getWidth(), toastView.getHeight(), 7.0f);
        }
Example #19
0
		public void invalidateChild (View child, Rect r)
		{
			XobotActivityManager.RequestInvalidate (this);
		}
Example #20
0
 public void onClick(View v)
 {
     value(that, new EventArgs());
 }
 // https://sites.google.com/a/jsc-solutions.net/backlog/knowledge-base/2013/20/20130722-new-release
 public virtual void addView(View view, ViewGroup.LayoutParams @params)
 {
 }
 public virtual Builder setView(View view)
 {
     return default(Builder);
 }
 public virtual void updateViewLayout(View view, ViewGroup.LayoutParams @params)
 {
 }
Example #24
0
		public void childDrawableStateChanged (View child)
		{
			; // Do nothing
		}
Example #25
0
		public void requestChildFocus (View child, View focused)
		{
			if (this.focused != focused) {
				attach_info.mTreeObserver.dispatchOnGlobalFocusChange (this.focused, focused);
				this.focused = focused;
			}
		}
Example #26
0
        public static void TryHideActionbar(this Activity that, View view)
        {
            try
            {
                //Log.wtf("AndroidGLSpiralActivity", "TryHideActionbar");
                var h = new HideLater { that = that, view = view };
                view.setOnSystemUiVisibilityChangeListener(
                   h
                    );

                h.onSystemUiVisibilityChange(0);
                //Log.wtf("AndroidGLSpiralActivity", "TryHideActionbar done");
            }
            catch
            {
                Log.wtf("AndroidGLSpiralActivity", "TryHideActionbar error");

                //throw;
            }
        }
Example #27
0
		public bool requestChildRectangleOnScreen (View child, Rect rectangle, bool immediate)
		{
			return false;
		}
 public virtual void removeView(View view)
 {
 }
Example #29
0
		public bool requestSendAccessibilityEvent (View child, android.view.accessibility.AccessibilityEvent @event)
		{
			throw new NotImplementedException ();
		}
Example #30
0
 public bool onTouch(View arg0, MotionEvent arg1)
 {
     return yield(arg0, arg1);
 }
Example #31
0
		public override void setContentView (View view)
		{
			setContentView (view, new ViewGroup.LayoutParams (
				ViewGroup.LayoutParams.FILL_PARENT,
				ViewGroup.LayoutParams.FILL_PARENT));
		}