private static void SetDataContext(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder, object context)
        {
            var contextHolder = holder as IBindingContextHolder;

            if (contextHolder == null)
            {
                if (holder.ItemViewType == global::Android.Resource.Layout.SimpleListItem1)
                {
                    var textView = holder.ItemView as TextView;
                    if (textView != null)
                    {
                        textView.Text = context.ToStringSafe("(null)");
                    }
                }
                else
                {
                    holder.ItemView.SetDataContext(context);
                }
            }
            else
            {
                if (contextHolder.BindingContext == null)
                {
                    var textView = holder.ItemView as TextView;
                    if (textView != null)
                    {
                        textView.Text = context.ToStringSafe("(null)");
                    }
                }
                else
                {
                    contextHolder.BindingContext.Value = context;
                }
            }
        }
 static void n_Listen_Landroid_support_v7_widget_RecyclerView_ViewHolder_ILcom_mikepenz_fastadapter_helpers_ClickListenerHelper_OnClickListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
 {
     global::Com.Mikepenz.Fastadapter.Helpers.ClickListenerHelper __this = global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.Helpers.ClickListenerHelper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Support.V7.Widget.RecyclerView.ViewHolder    p0     = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Mikepenz.Fastadapter.Helpers.ClickListenerHelper.IOnClickListener p2 = (global::Com.Mikepenz.Fastadapter.Helpers.ClickListenerHelper.IOnClickListener)global::Java.Lang.Object.GetObject <global::Com.Mikepenz.Fastadapter.Helpers.ClickListenerHelper.IOnClickListener> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.Listen(p0, p1, p2);
 }
        public override unsafe void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0, int p1)
        {
            if (id_onBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I == IntPtr.Zero)
            {
                id_onBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I = JNIEnv.GetMethodID(class_ref, "onBindViewHolder", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V");
            }
            IntPtr native_p0 = JNIEnv.ToLocalJniHandle(p0);

            try
            {
                JValue *__args = stackalloc JValue[2];
                __args[0] = new JValue(native_p0);
                __args[1] = new JValue(p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onBindViewHolder", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V"), __args);
                }
            }
            finally
            {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Example #4
0
 public override unsafe void OnViewRecycled(global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0)
 {
     if (id_onViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_ == IntPtr.Zero)
     {
         id_onViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_ = JNIEnv.GetMethodID(class_ref, "onViewRecycled", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_, __args);
     } finally {
     }
 }
 public override sealed unsafe void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder, int position)
 {
     if (id_onBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I == IntPtr.Zero)
     {
         id_onBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I = JNIEnv.GetMethodID(class_ref, "onBindViewHolder", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;I)V");
     }
     try {
         JValue *__args = stackalloc JValue[2];
         __args[0] = new JValue(holder);
         __args[1] = new JValue(position);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I, __args);
     } finally {
     }
 }
        public override unsafe void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder, int position)
        {
            const string __id = "onBindViewHolder.(Lcom/microsoft/officeuifabric/calendar/CalendarAdapter$CalendarDayViewHolder;I)V";

            try
            {
                JniArgumentValue *__args = stackalloc JniArgumentValue[2];
                __args[0] = new JniArgumentValue((holder == null) ? IntPtr.Zero : ((global::Java.Lang.Object)holder).Handle);
                __args[1] = new JniArgumentValue(position);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            }
            finally
            {
            }
        }
        public override unsafe void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder, int position)
        {
            const string __id = "onBindViewHolder.(Landroidx/slice/widget/LargeSliceAdapter$SliceViewHolder;I)V";

            try
            {
                JniArgumentValue *__args = stackalloc JniArgumentValue[2];
                __args[0] = new JniArgumentValue((holder == null) ? IntPtr.Zero : ((global::Java.Lang.Object)holder).Handle);
                __args[1] = new JniArgumentValue(position);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            }
            finally
            {
            }
        }
Example #8
0
 public override sealed unsafe global::Android.Support.V7.Widget.RecyclerView.ViewHolder OnCreateViewHolder(global::Android.Views.ViewGroup p0, int p1)
 {
     if (id_onCreateViewHolder_Landroid_view_ViewGroup_I == IntPtr.Zero)
     {
         id_onCreateViewHolder_Landroid_view_ViewGroup_I = JNIEnv.GetMethodID(class_ref, "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Android.Support.V7.Widget.RecyclerView.ViewHolder __ret = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_onCreateViewHolder_Landroid_view_ViewGroup_I, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public override void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder, int position)
        {
            object item = GetRawItem(position);

            if (holder.ItemViewType == global::Android.Resource.Layout.SimpleListItem1)
            {
                var textView = holder.ItemView as TextView;
                if (textView != null)
                {
                    textView.Text = item.ToStringSafe("(null)");
                }
            }
            else
            {
                holder.ItemView.SetDataContext(item);
            }
        }
        public override unsafe void OnViewRecycled(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder)
        {
            if (id_onViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_ == IntPtr.Zero)
            {
                id_onViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_ = JNIEnv.GetMethodID(class_ref, "onViewRecycled", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(holder);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onViewRecycled", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;)V"), __args);
                }
            } finally {
            }
        }
Example #11
0
        public override unsafe void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0, int p1)
        {
            if (id_onBindViewHolder_Lcom_twitter_sdk_android_tweetui_TweetTimelineRecyclerViewAdapter_TweetViewHolder_I == IntPtr.Zero)
            {
                id_onBindViewHolder_Lcom_twitter_sdk_android_tweetui_TweetTimelineRecyclerViewAdapter_TweetViewHolder_I = JNIEnv.GetMethodID(class_ref, "onBindViewHolder", "(Lcom/twitter/sdk/android/tweetui/TweetTimelineRecyclerViewAdapter$TweetViewHolder;I)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onBindViewHolder_Lcom_twitter_sdk_android_tweetui_TweetTimelineRecyclerViewAdapter_TweetViewHolder_I, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onBindViewHolder", "(Lcom/twitter/sdk/android/tweetui/TweetTimelineRecyclerViewAdapter$TweetViewHolder;I)V"), __args);
                }
            } finally {
            }
        }
        public virtual unsafe void Listen(global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0, int p1, global::Com.Mikepenz.Fastadapter.Helpers.ClickListenerHelper.IOnClickListener p2)
        {
            if (id_listen_Landroid_support_v7_widget_RecyclerView_ViewHolder_ILcom_mikepenz_fastadapter_helpers_ClickListenerHelper_OnClickListener_ == IntPtr.Zero)
            {
                id_listen_Landroid_support_v7_widget_RecyclerView_ViewHolder_ILcom_mikepenz_fastadapter_helpers_ClickListenerHelper_OnClickListener_ = JNIEnv.GetMethodID(class_ref, "listen", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;ILcom/mikepenz/fastadapter/helpers/ClickListenerHelper$OnClickListener;)V");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_listen_Landroid_support_v7_widget_RecyclerView_ViewHolder_ILcom_mikepenz_fastadapter_helpers_ClickListenerHelper_OnClickListener_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "listen", "(Landroid/support/v7/widget/RecyclerView$ViewHolder;ILcom/mikepenz/fastadapter/helpers/ClickListenerHelper$OnClickListener;)V"), __args);
                }
            } finally {
            }
        }
 static void n_OnBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
 {
     global::Com.Liveperson.Infra.UI.View.Utils.ItemsView.RecyclerViewAdapter __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Utils.ItemsView.RecyclerViewAdapter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0 = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnBindViewHolder(p0, p1);
 }
Example #14
0
 static void n_OnViewRecycled_Landroid_support_v7_widget_RecyclerView_ViewHolder_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Copybehavior.MessagingActionModeCopyBehavior __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.Messaging_ui.View.Adapter.Copybehavior.MessagingActionModeCopyBehavior> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0 = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnViewRecycled(p0);
 }
 static void n_OnBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I(IntPtr jnienv, IntPtr native__this, IntPtr native_holder, int position)
 {
     global::Android.Support.V17.Preferences.Leanback.LeanbackListPreferenceDialogFragment.AdapterSingle __this = global::Java.Lang.Object.GetObject <global::Android.Support.V17.Preferences.Leanback.LeanbackListPreferenceDialogFragment.AdapterSingle> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (native_holder, JniHandleOwnership.DoNotTransfer);
     __this.OnBindViewHolder(holder, position);
 }
 public override void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder holder, int position)
 {
     SetDataContext(holder, GetRawItem(position));
     (holder as IViewHolder)?.ApplyBindings();
 }
Example #17
0
 static void n_OnBindViewHolder_Landroid_support_v7_widget_RecyclerView_ViewHolder_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
 {
     global::AndroidSwipeLayout.Adapters.RecyclerSwipeAdapter  __this = global::Java.Lang.Object.GetObject <global::AndroidSwipeLayout.Adapters.RecyclerSwipeAdapter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0     = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnBindViewHolder(p0, p1);
 }
Example #18
0
 public abstract override void OnBindViewHolder(global::Android.Support.V7.Widget.RecyclerView.ViewHolder viewHolder, int position);
Example #19
0
 public abstract void OnViewRecycled(global::Android.Support.V7.Widget.RecyclerView.ViewHolder p0);