Example #1
0
            static bool n_OnMenuItemSelected_ILcom_actionbarsherlock_view_MenuItem_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1)
            {
                ICallback __this = Java.Lang.Object.GetObject <ICallback> (native__this, JniHandleOwnership.DoNotTransfer);

                global::ActionBar_Sherlock.View.IMenuItem p1 = Java.Lang.Object.GetObject <global::ActionBar_Sherlock.View.IMenuItem> (native_p1, JniHandleOwnership.DoNotTransfer);
                bool __ret = __this.OnMenuItemSelected(p0, p1);

                return(__ret);
            }
Example #2
0
            static bool n_OnMenuItemClick_Lcom_actionbarsherlock_view_MenuItem_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
            {
                InflatedOnMenuItemClickListener __this = Java.Lang.Object.GetObject <InflatedOnMenuItemClickListener> (native__this, JniHandleOwnership.DoNotTransfer);

                global::ActionBar_Sherlock.View.IMenuItem p0 = Java.Lang.Object.GetObject <global::ActionBar_Sherlock.View.IMenuItem> (native_p0, JniHandleOwnership.DoNotTransfer);
                bool __ret = __this.OnMenuItemClick(p0);

                return(__ret);
            }
Example #3
0
        static bool n_OnOptionsItemSelected_Lcom_actionbarsherlock_view_MenuItem_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            SherlockListFragment __this = Java.Lang.Object.GetObject <SherlockListFragment> (native__this, JniHandleOwnership.DoNotTransfer);

            global::ActionBar_Sherlock.View.IMenuItem p0 = Java.Lang.Object.GetObject <global::ActionBar_Sherlock.View.IMenuItem> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.OnOptionsItemSelected(p0);

            return(__ret);
        }
Example #4
0
            public bool OnMenuItemSelected(int p0, global::ActionBar_Sherlock.View.IMenuItem p1)
            {
                if (id_onMenuItemSelected_ILcom_actionbarsherlock_view_MenuItem_ == IntPtr.Zero)
                {
                    id_onMenuItemSelected_ILcom_actionbarsherlock_view_MenuItem_ = JNIEnv.GetMethodID(class_ref, "onMenuItemSelected", "(ILcom/actionbarsherlock/view/MenuItem;)Z");
                }
                bool __ret = JNIEnv.CallBooleanMethod(Handle, id_onMenuItemSelected_ILcom_actionbarsherlock_view_MenuItem_, new JValue(p0), new JValue(p1));

                return(__ret);
            }
Example #5
0
 public static global::ActionBar_Sherlock.View.IMenuItem Add(this ActionBar_Sherlock.View.IMenu self, string p0)
 {
     Java.Lang.String jls_p0 = p0 == null ? null : new Java.Lang.String(p0);
     global::ActionBar_Sherlock.View.IMenuItem __result = self.Add(jls_p0);
     if (jls_p0 != null)
     {
         jls_p0.Dispose();
     }
     return(__result);
 }
Example #6
0
 public static global::ActionBar_Sherlock.View.IMenuItem Add(this ActionBar_Sherlock.View.IMenu self, int p0, int p1, int p2, string p3)
 {
     Java.Lang.String jls_p3 = p3 == null ? null : new Java.Lang.String(p3);
     global::ActionBar_Sherlock.View.IMenuItem __result = self.Add(p0, p1, p2, jls_p3);
     if (jls_p3 != null)
     {
         jls_p3.Dispose();
     }
     return(__result);
 }
Example #7
0
        public global::ActionBar_Sherlock.View.IMenuItem Add(global::Java.Lang.ICharSequence p0)
        {
            if (id_add_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_add_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID(class_ref, "add", "(Ljava/lang/CharSequence;)Lcom/actionbarsherlock/view/MenuItem;");
            }
            IntPtr native_p0 = CharSequence.ToLocalJniHandle(p0);

            global::ActionBar_Sherlock.View.IMenuItem __ret = Java.Lang.Object.GetObject <global::ActionBar_Sherlock.View.IMenuItem> (JNIEnv.CallObjectMethod(Handle, id_add_Ljava_lang_CharSequence_, new JValue(native_p0)), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
Example #8
0
            public virtual bool OnMenuItemClick(global::ActionBar_Sherlock.View.IMenuItem p0)
            {
                if (id_onMenuItemClick_Lcom_actionbarsherlock_view_MenuItem_ == IntPtr.Zero)
                {
                    id_onMenuItemClick_Lcom_actionbarsherlock_view_MenuItem_ = JNIEnv.GetMethodID(class_ref, "onMenuItemClick", "(Lcom/actionbarsherlock/view/MenuItem;)Z");
                }

                bool __ret;

                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(Handle, id_onMenuItemClick_Lcom_actionbarsherlock_view_MenuItem_, new JValue(p0));
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, id_onMenuItemClick_Lcom_actionbarsherlock_view_MenuItem_, new JValue(p0));
                }
                return(__ret);
            }