Inheritance: java.lang.Object, android.graphics.drawable.Drawable.Callback, android.view.KeyEvent.Callback, android.view.accessibility.AccessibilityEventSource
示例#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();
        }
示例#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);
		}
示例#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);
		}
示例#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);

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

			if (!view.hasFocus ()) {
				v.requestFocus ();
			}
		}
示例#15
0
		public View focusSearch (View v, int direction)
		{
			// FIXME
			return null;
		}
示例#16
0
		public bool getChildVisibleRect (View child, Rect r, Point offset)
		{
			throw new NotImplementedException ();
		}
示例#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);
			}
		}
示例#18
0
        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);
        }
示例#19
0
		public void invalidateChild (View child, Rect r)
		{
			XobotActivityManager.RequestInvalidate (this);
		}
示例#20
0
 public void onClick(View v)
 {
     value(that, new EventArgs());
 }
示例#21
0
 // 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)
 {
 }
示例#22
0
 public virtual Builder setView(View view)
 {
     return default(Builder);
 }
示例#23
0
 public virtual void updateViewLayout(View view, ViewGroup.LayoutParams @params)
 {
 }
示例#24
0
		public void childDrawableStateChanged (View child)
		{
			; // Do nothing
		}
示例#25
0
		public void requestChildFocus (View child, View focused)
		{
			if (this.focused != focused) {
				attach_info.mTreeObserver.dispatchOnGlobalFocusChange (this.focused, focused);
				this.focused = focused;
			}
		}
示例#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;
            }
        }
示例#27
0
		public bool requestChildRectangleOnScreen (View child, Rect rectangle, bool immediate)
		{
			return false;
		}
示例#28
0
 public virtual void removeView(View view)
 {
 }
示例#29
0
		public bool requestSendAccessibilityEvent (View child, android.view.accessibility.AccessibilityEvent @event)
		{
			throw new NotImplementedException ();
		}
示例#30
0
 public bool onTouch(View arg0, MotionEvent arg1)
 {
     return yield(arg0, arg1);
 }
示例#31
0
		public override void setContentView (View view)
		{
			setContentView (view, new ViewGroup.LayoutParams (
				ViewGroup.LayoutParams.FILL_PARENT,
				ViewGroup.LayoutParams.FILL_PARENT));
		}