protected override View GetCellCore (Cell item, View convertView, ViewGroup parent, Context context)
		{
			var cell = (LinearLayout)base.GetCellCore (item, convertView, parent, context);
			cell.SetPadding(20, 10, 0, 10);
			cell.DividerPadding = 50;

			var div = new ShapeDrawable();
			div.SetIntrinsicHeight(1);
			//div.Paint.Set(new Paint { Color = Color.FromHex("00FFFFFF").ToAndroid() });

			if (parent is ListView) {
				((ListView)parent).Divider = div;
				((ListView)parent).DividerHeight = 1;
			}


			var label = (TextView)((LinearLayout)cell.GetChildAt(1)).GetChildAt(0);
			label.SetTextColor(Color.FromHex("000000").ToAndroid());
			label.TextSize = Font.SystemFontOfSize(NamedSize.Large).ToScaledPixel();

			var secondaryLabel = (TextView)((LinearLayout)cell.GetChildAt(1)).GetChildAt(1);
			secondaryLabel.SetTextColor(Color.FromHex("738182").ToAndroid());
			secondaryLabel.TextSize = Font.SystemFontOfSize(NamedSize.Medium).ToScaledPixel();


			return cell;
		}
        protected override View GetCellCore(Cell item, View convertView, ViewGroup parent, Context context)
        {
            var cell = (LinearLayout)base.GetCellCore(item, convertView, parent, context);
            cell.SetPadding(20, 30, 0, 30);
            cell.DividerPadding = 50;

            var div = new ShapeDrawable();
            div.SetIntrinsicHeight(1);
            div.Paint.Set(new Paint { Color = Color.FromHex("00FFFFFF").ToAndroid() });

            if (parent is ListView)
            {
                ((ListView)parent).Divider = div;
                ((ListView)parent).DividerHeight = 1;
            }

            var image = (ImageView)cell.GetChildAt(0);
            image.SetScaleType(ImageView.ScaleType.FitCenter);

            image.LayoutParameters.Width = 60;
            image.LayoutParameters.Height = 60;

            var linear = (LinearLayout)cell.GetChildAt(1);
            linear.SetGravity(Android.Views.GravityFlags.CenterVertical);

            var label = (TextView)linear.GetChildAt(0);
            label.SetTextColor(Color.White.ToAndroid());
            label.TextSize = Font.SystemFontOfSize(NamedSize.Large).ToScaledPixel() * 1.25f;
            label.Gravity = (Android.Views.GravityFlags.CenterVertical);
            label.SetTextColor(Color.FromHex("000000").ToAndroid());
            var secondaryLabel = (TextView)linear.GetChildAt(1);
            secondaryLabel.Visibility = Android.Views.ViewStates.Gone;

            return cell;
        }
Пример #3
0
        protected override View GetCellCore (Cell item, View convertView, ViewGroup parent, Context context)
        {
            var cell = (LinearLayout)base.GetCellCore (item, convertView, parent, context);
            cell.SetPadding(20, 10, 0, 10);
            cell.DividerPadding = 50;

            var div = new ShapeDrawable();
            div.SetIntrinsicHeight(1);

            div.Paint.Set(new Paint { Color = MobileCRM.Shared.Helpers.AppColors.SEPARATOR.ToAndroid() });


            if (parent is ListView) {
                ((ListView)parent).Divider = div;
                ((ListView)parent).DividerHeight = 1;
            }


            var label = (TextView)((LinearLayout)cell.GetChildAt(1)).GetChildAt(0);


            label.SetTextColor(MobileCRM.Shared.Helpers.AppColors.LABELWHITE.ToAndroid());

            
            label.TextSize = Font.SystemFontOfSize(NamedSize.Large).ToScaledPixel();

            var secondaryLabel = (TextView)((LinearLayout)cell.GetChildAt(1)).GetChildAt(1);

            secondaryLabel.SetTextColor(MobileCRM.Shared.Helpers.AppColors.LABELBLUE.ToAndroid());
           
            secondaryLabel.TextSize = Font.SystemFontOfSize(NamedSize.Medium).ToScaledPixel();


            return cell;
        }
Пример #4
0
        public override global::Android.Views.View GetView(int position, global::Android.Views.View convertView, global::Android.Views.ViewGroup parent)
        {
            // Get our object for position
            var task = todoItems[position];

            //Try to reuse convertView if it's not  null, otherwise inflate it from our item layout
            // gives us some performance gains by not always inflating a new view
            // will sound familiar to MonoTouch developers with UITableViewCell.DequeueReusableCell()
            var view = (convertView ??
                        context.LayoutInflater.Inflate(
                            global::Android.Resource.Layout.SimpleListItemChecked,
                            parent,
                            false)) as CheckedTextView;

            view.SetText(task.Name, TextView.BufferType.Normal);
            view.Checked = task.Done;

            //Finally return the view
            return(view);
        }
Пример #5
0
 public abstract override global::Android.Support.V7.Widget.RecyclerView.ViewHolder OnCreateViewHolder(global::Android.Views.ViewGroup parent, int position);
Пример #6
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 unsafe global::Android.Views.View OnCreateView(global::Android.Views.LayoutInflater p0, global::Android.Views.ViewGroup p1, global::Android.OS.Bundle p2)
        {
            if (id_onCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ == IntPtr.Zero)
            {
                id_onCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ = JNIEnv.GetMethodID(class_ref, "onCreateView", "(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;");
            }
            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
            global::Android.Views.View __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_onCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public unsafe QuickRepliesViewBuilderVisitor(global::Android.Content.Context p0, global::Android.Views.ViewGroup p1, string p2, global::Com.Liveperson.Infra.Messaging_ui.Uicomponents.List.OnSCActionClickListener p3, global::Com.Liveperson.Infra.Messaging_ui.Uicomponents.Structuredcontent.IQRActionClickListener p4, int p5, int p6, global::Com.Liveperson.Infra.Messaging_ui.Uicomponents.Structuredcontent.Visitor.ViewBuilderVisitor.IStructuredContentContainerOperations p7)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [8];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(p6);
                __args [7] = new JValue(p7);
                if (((object)this).GetType() != typeof(QuickRepliesViewBuilderVisitor))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/Context;Landroid/view/ViewGroup;Ljava/lang/String;Lcom/liveperson/infra/messaging_ui/uicomponents/list/OnSCActionClickListener;Lcom/liveperson/infra/messaging_ui/uicomponents/structuredcontent/QRActionClickListener;IILcom/liveperson/infra/messaging_ui/uicomponents/structuredcontent/visitor/ViewBuilderVisitor$StructuredContentContainerOperations;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/Context;Landroid/view/ViewGroup;Ljava/lang/String;Lcom/liveperson/infra/messaging_ui/uicomponents/list/OnSCActionClickListener;Lcom/liveperson/infra/messaging_ui/uicomponents/structuredcontent/QRActionClickListener;IILcom/liveperson/infra/messaging_ui/uicomponents/structuredcontent/visitor/ViewBuilderVisitor$StructuredContentContainerOperations;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_Context_Landroid_view_ViewGroup_Ljava_lang_String_Lcom_liveperson_infra_messaging_ui_uicomponents_list_OnSCActionClickListener_Lcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_QRActionClickListener_IILcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_visitor_ViewBuilderVisitor_StructuredContentContainerOperations_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_Context_Landroid_view_ViewGroup_Ljava_lang_String_Lcom_liveperson_infra_messaging_ui_uicomponents_list_OnSCActionClickListener_Lcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_QRActionClickListener_IILcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_visitor_ViewBuilderVisitor_StructuredContentContainerOperations_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Landroid/view/ViewGroup;Ljava/lang/String;Lcom/liveperson/infra/messaging_ui/uicomponents/list/OnSCActionClickListener;Lcom/liveperson/infra/messaging_ui/uicomponents/structuredcontent/QRActionClickListener;IILcom/liveperson/infra/messaging_ui/uicomponents/structuredcontent/visitor/ViewBuilderVisitor$StructuredContentContainerOperations;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Landroid_view_ViewGroup_Ljava_lang_String_Lcom_liveperson_infra_messaging_ui_uicomponents_list_OnSCActionClickListener_Lcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_QRActionClickListener_IILcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_visitor_ViewBuilderVisitor_StructuredContentContainerOperations_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_Context_Landroid_view_ViewGroup_Ljava_lang_String_Lcom_liveperson_infra_messaging_ui_uicomponents_list_OnSCActionClickListener_Lcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_QRActionClickListener_IILcom_liveperson_infra_messaging_ui_uicomponents_structuredcontent_visitor_ViewBuilderVisitor_StructuredContentContainerOperations_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
        public virtual unsafe global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder OnCreate(global::Android.Views.ViewGroup p0, int p1)
        {
            if (id_onCreate_Landroid_view_ViewGroup_I == IntPtr.Zero)
            {
                id_onCreate_Landroid_view_ViewGroup_I = JNIEnv.GetMethodID(class_ref, "onCreate", "(Landroid/view/ViewGroup;I)Lcom/liveperson/infra/ui/view/adapter/viewholder/BaseViewHolder;");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_onCreate_Landroid_view_ViewGroup_I, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onCreate", "(Landroid/view/ViewGroup;I)Lcom/liveperson/infra/ui/view/adapter/viewholder/BaseViewHolder;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Пример #10
0
        public override unsafe global::Android.Views.View GetView(int p0, global::Android.Views.View p1, global::Android.Views.ViewGroup p2)
        {
            if (id_getView_ILandroid_view_View_Landroid_view_ViewGroup_ == IntPtr.Zero)
            {
                id_getView_ILandroid_view_View_Landroid_view_ViewGroup_ = JNIEnv.GetMethodID(class_ref, "getView", "(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                global::Android.Views.View __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getView_ILandroid_view_View_Landroid_view_ViewGroup_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getView", "(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Пример #11
0
 public override sealed global::Android.Views.View GetView(int p0, global::Android.Views.View p1, global::Android.Views.ViewGroup p2)
 {
     if (id_getView_ILandroid_view_View_Landroid_view_ViewGroup_ == IntPtr.Zero)
     {
         id_getView_ILandroid_view_View_Landroid_view_ViewGroup_ = JNIEnv.GetMethodID(class_ref, "getView", "(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;");
     }
     global::Android.Views.View __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(Handle, id_getView_ILandroid_view_View_Landroid_view_ViewGroup_, new JValue(p0), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
        protected override global::Android.Views.View GetCellCore(Xamarin.Forms.Cell item, global::Android.Views.View convertView, global::Android.Views.ViewGroup parent, global::Android.Content.Context context)
        {
            var cell = base.GetCellCore(item, convertView, parent, context) as ViewGroup;

            cell.SetOnDragListener(new ItemDragListener(cell));
            return(cell);
        }
        public virtual unsafe global::Android.Views.View CreateAdView(global::Android.App.Activity p0, global::Android.Views.ViewGroup p1)
        {
            if (id_createAdView_Landroid_app_Activity_Landroid_view_ViewGroup_ == IntPtr.Zero)
            {
                id_createAdView_Landroid_app_Activity_Landroid_view_ViewGroup_ = JNIEnv.GetMethodID(class_ref, "createAdView", "(Landroid/app/Activity;Landroid/view/ViewGroup;)Landroid/view/View;");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                global::Android.Views.View __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createAdView_Landroid_app_Activity_Landroid_view_ViewGroup_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "createAdView", "(Landroid/app/Activity;Landroid/view/ViewGroup;)Landroid/view/View;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
        // Metadata.xml XPath method reference: path="/api/package[@name='io.adaptivecards.renderer.readonly']/class[@name='ImageRenderer']/method[@name='render' and count(parameter)=8 and parameter[1][@type='io.adaptivecards.renderer.RenderedAdaptiveCard'] and parameter[2][@type='android.content.Context'] and parameter[3][@type='android.support.v4.app.FragmentManager'] and parameter[4][@type='android.view.ViewGroup'] and parameter[5][@type='io.adaptivecards.objectmodel.BaseCardElement'] and parameter[6][@type='io.adaptivecards.renderer.actionhandler.ICardActionHandler'] and parameter[7][@type='io.adaptivecards.objectmodel.HostConfig'] and parameter[8][@type='io.adaptivecards.renderer.RenderArgs']]"
        public override unsafe global::Android.Views.View Render(global::IO.Adaptivecards.Renderer.RenderedAdaptiveCard renderedCard, global::Android.Content.Context context, global::Android.Support.V4.App.FragmentManager fragmentManager, global::Android.Views.ViewGroup viewGroup, global::IO.Adaptivecards.Objectmodel.BaseCardElement baseCardElement, global::IO.Adaptivecards.Renderer.Actionhandler.ICardActionHandler cardActionHandler, global::IO.Adaptivecards.Objectmodel.HostConfig hostConfig, global::IO.Adaptivecards.Renderer.RenderArgs renderArgs)
        {
            if (id_render_Lio_adaptivecards_renderer_RenderedAdaptiveCard_Landroid_content_Context_Landroid_support_v4_app_FragmentManager_Landroid_view_ViewGroup_Lio_adaptivecards_objectmodel_BaseCardElement_Lio_adaptivecards_renderer_actionhandler_ICardActionHandler_Lio_adaptivecards_objectmodel_HostConfig_Lio_adaptivecards_renderer_RenderArgs_ == IntPtr.Zero)
            {
                id_render_Lio_adaptivecards_renderer_RenderedAdaptiveCard_Landroid_content_Context_Landroid_support_v4_app_FragmentManager_Landroid_view_ViewGroup_Lio_adaptivecards_objectmodel_BaseCardElement_Lio_adaptivecards_renderer_actionhandler_ICardActionHandler_Lio_adaptivecards_objectmodel_HostConfig_Lio_adaptivecards_renderer_RenderArgs_ = JNIEnv.GetMethodID(class_ref, "render", "(Lio/adaptivecards/renderer/RenderedAdaptiveCard;Landroid/content/Context;Landroid/support/v4/app/FragmentManager;Landroid/view/ViewGroup;Lio/adaptivecards/objectmodel/BaseCardElement;Lio/adaptivecards/renderer/actionhandler/ICardActionHandler;Lio/adaptivecards/objectmodel/HostConfig;Lio/adaptivecards/renderer/RenderArgs;)Landroid/widget/ImageView;");
            }
            try
            {
                JValue *__args = stackalloc JValue[8];
                __args[0] = new JValue(renderedCard);
                __args[1] = new JValue(context);
                __args[2] = new JValue(fragmentManager);
                __args[3] = new JValue(viewGroup);
                __args[4] = new JValue(baseCardElement);
                __args[5] = new JValue(cardActionHandler);
                __args[6] = new JValue(hostConfig);
                __args[7] = new JValue(renderArgs);

                global::Android.Widget.ImageView __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Widget.ImageView>(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_render_Lio_adaptivecards_renderer_RenderedAdaptiveCard_Landroid_content_Context_Landroid_support_v4_app_FragmentManager_Landroid_view_ViewGroup_Lio_adaptivecards_objectmodel_BaseCardElement_Lio_adaptivecards_renderer_actionhandler_ICardActionHandler_Lio_adaptivecards_objectmodel_HostConfig_Lio_adaptivecards_renderer_RenderArgs_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Android.Widget.ImageView>(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "render", "(Lio/adaptivecards/renderer/RenderedAdaptiveCard;Landroid/content/Context;Landroid/support/v4/app/FragmentManager;Landroid/view/ViewGroup;Lio/adaptivecards/objectmodel/BaseCardElement;Lio/adaptivecards/renderer/actionhandler/ICardActionHandler;Lio/adaptivecards/objectmodel/HostConfig;Lio/adaptivecards/renderer/RenderArgs;)Landroid/widget/ImageView;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            }
            finally
            {
            }
        }
Пример #15
0
 public abstract global::Java.Lang.Object OnCreateGroupViewHolder(global::Android.Views.ViewGroup parent, int viewType);
Пример #16
0
        public override global::Android.Views.View GetView(int position, global::Android.Views.View convertView, global::Android.Views.ViewGroup parent)
        {
            SpinnerHolder holder = null;
            var           view   = convertView;

            if (view != null)
            {
                holder = view.Tag as SpinnerHolder;
            }

            if (holder == null)
            {
                holder = new SpinnerHolder();
                //view = this._Context.LayoutInflater.Inflate (Resource.Layout.SpinnerItemLayout, null);
                view                 = this._Context.LayoutInflater.Inflate(Resource.Layout.SpinnerItemLayout, null);
                holder.Layout        = view.FindViewById <LinearLayout> (Resource.Id.SpinnerLayout);
                holder.Text          = view.FindViewById <TextView> (Resource.Id.SpinnerTextView);
                holder.Text.TextSize = this._FontSize;
                view.Tag             = holder;
            }

            var item = this._Items [position];

            if (position == 0)
            {
                holder.Text.Text = this._Title;
            }
            else
            {
//				if (SelectedText == item && this._NoSelectedColor == false) {
//					holder.Layout.SetBackgroundDrawable (new RectBorder (3,
//						global::Android.Graphics.Color.Black, this._SelectedBackColor));
//					holder.Text.SetTextColor (this._SelectedTextColor);
//				}
                holder.Text.Text = this._Items [position];
            }


            return(view);
        }
        public override unsafe global::Android.Support.V7.Widget.RecyclerView.ViewHolder OnCreateViewHolder(global::Android.Views.ViewGroup parent, int viewType)
        {
            const string __id = "onCreateViewHolder.(Landroid/view/ViewGroup;I)Lcom/chad/library/adapter/base/BaseViewHolder;";

            try
            {
                JniArgumentValue *__args = stackalloc JniArgumentValue[2];
                __args[0] = new JniArgumentValue((parent == null) ? IntPtr.Zero : ((global::Java.Lang.Object)parent).Handle);
                __args[1] = new JniArgumentValue(viewType);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder>(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            }
            finally
            {
            }
        }
            public unsafe global::Com.Liveperson.Infra.UI.View.Utils.ItemsView.CellHolder Create(global::Android.Views.ViewGroup p0, int p1)
            {
                if (id_create_Landroid_view_ViewGroup_I == IntPtr.Zero)
                {
                    id_create_Landroid_view_ViewGroup_I = JNIEnv.GetMethodID(class_ref, "create", "(Landroid/view/ViewGroup;I)Lcom/liveperson/infra/ui/view/utils/ItemsView$CellHolder;");
                }
                JValue *__args = stackalloc JValue [2];

                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                global::Com.Liveperson.Infra.UI.View.Utils.ItemsView.CellHolder __ret = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Utils.ItemsView.CellHolder> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_create_Landroid_view_ViewGroup_I, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            }
 // This method is explicitly implemented as a member of an instantiated Com.Liveperson.Infra.UI.View.Header.IStickyRecyclerHeadersAdapter
 global::Java.Lang.Object global::Com.Liveperson.Infra.UI.View.Header.IStickyRecyclerHeadersAdapter.OnCreateHeaderViewHolder(global::Android.Views.ViewGroup p0)
 {
     return(global::Java.Interop.JavaObjectExtensions.JavaCast <Java.Lang.Object>(OnCreateHeaderViewHolder(p0)));
 }
        public unsafe global::Android.Views.View CreateAdView(global::Android.App.Activity p0, global::Android.Views.ViewGroup p1)
        {
            if (id_createAdView_Landroid_app_Activity_Landroid_view_ViewGroup_ == IntPtr.Zero)
            {
                id_createAdView_Landroid_app_Activity_Landroid_view_ViewGroup_ = JNIEnv.GetMethodID(class_ref, "createAdView", "(Landroid/app/Activity;Landroid/view/ViewGroup;)Landroid/view/View;");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            global::Android.Views.View __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_createAdView_Landroid_app_Activity_Landroid_view_ViewGroup_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
            public override unsafe global::Android.Support.V7.Widget.RecyclerView.ViewHolder OnCreateViewHolder(global::Android.Views.ViewGroup parent, int viewType)
            {
                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(parent);
                    __args [1] = new JValue(viewType);

                    global::Android.Support.V7.Widget.RecyclerView.ViewHolder __ret;
                    if (GetType() == ThresholdType)
                    {
                        __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);
                    }
                    else
                    {
                        __ret = global::Java.Lang.Object.GetObject <global::Android.Support.V7.Widget.RecyclerView.ViewHolder> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onCreateViewHolder", "(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;"), __args), JniHandleOwnership.TransferLocalRef);
                    }
                    return(__ret);
                } finally {
                }
            }
Пример #22
0
        public override unsafe global::Android.Views.View GetView(int p0, global::Android.Views.View p1, global::Android.Views.ViewGroup p2)
        {
            const string __id = "getView.(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue(p0);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.Views.View> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Пример #23
0
        //Returns the view for a specific item on the list
        public override View GetView(int position, global::Android.Views.View convertView, global::Android.Views.ViewGroup parent)
        {
            var      row         = convertView;
            var      currentItem = this[position];
            CheckBox checkBox;

            if (row == null)
            {
                var inflater = activity.LayoutInflater;
                row = inflater.Inflate(layoutResourceId, parent, false);

                checkBox = row.FindViewById <CheckBox>(Resource.Id.checkToDoItem);

                checkBox.CheckedChange += async(sender, e) => {
                    var cbSender = sender as CheckBox;
                    if (cbSender != null && cbSender.Tag is ToDoItemWrapper && cbSender.Checked)
                    {
                        cbSender.Enabled = false;
                        if (activity is ToDoActivity)
                        {
                            await((ToDoActivity)activity).CheckItem((cbSender.Tag as ToDoItemWrapper).ToDoItem);
                        }
                    }
                };
            }
            else
            {
                checkBox = row.FindViewById <CheckBox>(Resource.Id.checkToDoItem);
            }

            checkBox.Text    = currentItem.Text;
            checkBox.Checked = false;
            checkBox.Enabled = true;
            checkBox.Tag     = new ToDoItemWrapper(currentItem);

            return(row);
        }
Пример #24
0
 public abstract global::Android.Views.View GetView(int p0, global::Android.Views.View p1, global::Android.Views.ViewGroup p2);
        public unsafe global::Android.Views.View GenerateView(global::Android.Content.Context p0, global::Android.Views.ViewGroup p1)
        {
            if (id_generateView_Landroid_content_Context_Landroid_view_ViewGroup_ == IntPtr.Zero)
            {
                id_generateView_Landroid_content_Context_Landroid_view_ViewGroup_ = JNIEnv.GetMethodID(class_ref, "generateView", "(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            global::Android.Views.View __ret = global::Java.Lang.Object.GetObject <global::Android.Views.View> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_generateView_Landroid_content_Context_Landroid_view_ViewGroup_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Пример #26
0
		protected override View GetCellCore (Cell item, View convertView, ViewGroup parent, Context context)
		{
			var cell = (LinearLayout)base.GetCellCore (item, convertView, parent, context);

			return cell;
		}
Пример #27
0
 public abstract global::Java.Lang.Object OnCreate(global::Android.Views.ViewGroup p0, int p1);