示例#1
0
        public virtual unsafe void UpdateAudioDuration(global::Android.Widget.TextView p0, string p1)
        {
            if (id_updateAudioDuration_Landroid_widget_TextView_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_updateAudioDuration_Landroid_widget_TextView_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "updateAudioDuration", "(Landroid/widget/TextView;Ljava/lang/String;)V");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

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

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_updateAudioDuration_Landroid_widget_TextView_Ljava_lang_String_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "updateAudioDuration", "(Landroid/widget/TextView;Ljava/lang/String;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
 static void n_ResetColor_Landroid_widget_TextView_Landroid_widget_TextView_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Applozic.Mobicomkit.Uiwidgets.Schedule.ConversationScheduler __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Uiwidgets.Schedule.ConversationScheduler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Widget.TextView p0 = global::Java.Lang.Object.GetObject <global::Android.Widget.TextView> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Android.Widget.TextView p1 = global::Java.Lang.Object.GetObject <global::Android.Widget.TextView> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.ResetColor(p0, p1);
 }
示例#3
0
        public static string SetHint(this global::Android.Widget.TextView Control, Element Element, string _defaultHint)
        {
            if (Element == null)
            {
                return(_defaultHint);
            }

            if (_defaultHint == null)
            {
                _defaultHint = Control.Hint;
            }

            var elemValue = ConcatenateNameAndHint(Element);

            if (!string.IsNullOrWhiteSpace(elemValue))
            {
                Control.Hint = elemValue;
            }
            else
            {
                Control.Hint = _defaultHint;
            }

            return(_defaultHint);
        }
示例#4
0
        public unsafe OffHours(global::Android.Content.Res.Resources res, global::Android.Widget.TextView view)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(res);
                __args [1] = new JValue(view);
                if (((object)this).GetType() != typeof(OffHours))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/content/res/Resources;Landroid/widget/TextView;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/content/res/Resources;Landroid/widget/TextView;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/res/Resources;Landroid/widget/TextView;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_content_res_Resources_Landroid_widget_TextView_, __args);
            } finally {
            }
        }
            static IntPtr n_SetTextViewShort_Landroid_widget_TextView_(IntPtr jnienv, IntPtr native__this, IntPtr native_textViewShort)
            {
                global::Com.Mapbox.Mapboxsdk.Attribution.AttributionMeasure.Builder __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Attribution.AttributionMeasure.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Android.Widget.TextView textViewShort = global::Java.Lang.Object.GetObject <global::Android.Widget.TextView> (native_textViewShort, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetTextViewShort(textViewShort));

                return(__ret);
            }
示例#6
0
        static void n_UpdateAudioDuration_Landroid_widget_TextView_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Applozic.Mobicomkit.Uiwidgets.Attachmentview.ApplozicAudioManager __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicomkit.Uiwidgets.Attachmentview.ApplozicAudioManager> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Widget.TextView p0 = global::Java.Lang.Object.GetObject <global::Android.Widget.TextView> (native_p0, JniHandleOwnership.DoNotTransfer);
            string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

            __this.UpdateAudioDuration(p0, p1);
        }
示例#7
0
        static bool n_LinkifyText_Landroid_widget_TextView_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder __this = global::Java.Lang.Object.GetObject <global::Com.Liveperson.Infra.UI.View.Adapter.Viewholder.BaseViewHolder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Widget.TextView p0 = global::Java.Lang.Object.GetObject <global::Android.Widget.TextView> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.LinkifyText(p0);

            return(__ret);
        }
示例#8
0
        public static unsafe void SetTextColor(global::Android.Widget.TextView p0, int p1, int p2)
        {
            const string __id = "setTextColor.(Landroid/widget/TextView;II)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue(p1);
                __args [2] = new JniArgumentValue(p2);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
示例#9
0
 public static unsafe void UpdateTextColorLink(global::Android.Widget.TextView p0, int p1)
 {
     if (id_updateTextColorLink_Landroid_widget_TextView_I == IntPtr.Zero)
     {
         id_updateTextColorLink_Landroid_widget_TextView_I = JNIEnv.GetStaticMethodID(class_ref, "updateTextColorLink", "(Landroid/widget/TextView;I)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_updateTextColorLink_Landroid_widget_TextView_I, __args);
     } finally {
     }
 }
示例#10
0
        public static unsafe void SetText(global::Android.Widget.TextView p0, int p1, string p2)
        {
            const string __id      = "setText.(Landroid/widget/TextView;ILjava/lang/String;)V";
            IntPtr       native_p2 = JNIEnv.NewString(p2);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue(p1);
                __args [2] = new JniArgumentValue(native_p2);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
示例#11
0
        public static unsafe void AddTextView(global::Android.Widget.TextView p0, string p1)
        {
            if (id_addTextView_Landroid_widget_TextView_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_addTextView_Landroid_widget_TextView_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "addTextView", "(Landroid/widget/TextView;Ljava/lang/String;)V");
            }
            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                JNIEnv.CallStaticVoidMethod(class_ref, id_addTextView_Landroid_widget_TextView_Ljava_lang_String_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
        public virtual unsafe void ResetColor(global::Android.Widget.TextView p0, global::Android.Widget.TextView p1)
        {
            if (id_resetColor_Landroid_widget_TextView_Landroid_widget_TextView_ == IntPtr.Zero)
            {
                id_resetColor_Landroid_widget_TextView_Landroid_widget_TextView_ = JNIEnv.GetMethodID(class_ref, "resetColor", "(Landroid/widget/TextView;Landroid/widget/TextView;)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_resetColor_Landroid_widget_TextView_Landroid_widget_TextView_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "resetColor", "(Landroid/widget/TextView;Landroid/widget/TextView;)V"), __args);
                }
            } finally {
            }
        }
示例#13
0
        protected virtual unsafe bool LinkifyText(global::Android.Widget.TextView p0)
        {
            if (id_linkifyText_Landroid_widget_TextView_ == IntPtr.Zero)
            {
                id_linkifyText_Landroid_widget_TextView_ = JNIEnv.GetMethodID(class_ref, "linkifyText", "(Landroid/widget/TextView;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_linkifyText_Landroid_widget_TextView_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "linkifyText", "(Landroid/widget/TextView;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
        public static unsafe void ChangeCustomTextViewFont(global::Android.Widget.TextView p0, global::Android.Content.Context p1, global::Android.Util.IAttributeSet p2, int[] p3, int p4)
        {
            if (id_changeCustomTextViewFont_Landroid_widget_TextView_Landroid_content_Context_Landroid_util_AttributeSet_arrayII == IntPtr.Zero)
            {
                id_changeCustomTextViewFont_Landroid_widget_TextView_Landroid_content_Context_Landroid_util_AttributeSet_arrayII = JNIEnv.GetStaticMethodID(class_ref, "changeCustomTextViewFont", "(Landroid/widget/TextView;Landroid/content/Context;Landroid/util/AttributeSet;[II)V");
            }
            IntPtr native_p3 = JNIEnv.NewArray(p3);

            try {
                JValue *__args = stackalloc JValue [5];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(native_p3);
                __args [4] = new JValue(p4);
                JNIEnv.CallStaticVoidMethod(class_ref, id_changeCustomTextViewFont_Landroid_widget_TextView_Landroid_content_Context_Landroid_util_AttributeSet_arrayII, __args);
            } finally {
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
            }
        }
示例#15
0
        public override global::Android.Views.View GetView(
            int position,
            global::Android.Views.View convertView,
            ViewGroup parent)
        {
            AndroidTextView view;

            ListPickerItem item = this._items[position];

            if (convertView == null)
            {
                view = new AndroidTextView(this._context)
                {
                    Text = item.Text,
                };
            }
            else
            {
                view      = convertView as AndroidTextView;
                view.Text = item.Text;
            }

            return(view);
        }
            public virtual unsafe global::Com.Mapbox.Mapboxsdk.Attribution.AttributionMeasure.Builder SetTextViewShort(global::Android.Widget.TextView textViewShort)
            {
                const string __id = "setTextViewShort.(Landroid/widget/TextView;)Lcom/mapbox/mapboxsdk/attribution/AttributionMeasure$Builder;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((textViewShort == null) ? IntPtr.Zero : ((global::Java.Lang.Object)textViewShort).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Com.Mapbox.Mapboxsdk.Attribution.AttributionMeasure.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }
示例#17
0
            public unsafe ProfilePictureUpload(global::Com.Applozic.Mobicomkit.Uiwidgets.People.Fragment.ProfileFragment __self, global::Com.Applozic.Mobicommons.People.Contact.Contact p1, global::Android.Content.Context p2, global::Android.Widget.TextView p3, global::Android.Widget.TextView p4, global::Android.Widget.TextView p5)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                try {
                    JValue *__args = stackalloc JValue [6];
                    __args [0] = new JValue(__self);
                    __args [1] = new JValue(p1);
                    __args [2] = new JValue(p2);
                    __args [3] = new JValue(p3);
                    __args [4] = new JValue(p4);
                    __args [5] = new JValue(p5);
                    if (((object)this).GetType() != typeof(ProfilePictureUpload))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lcom/applozic/mobicommons/people/contact/Contact;Landroid/content/Context;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/TextView;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Lcom/applozic/mobicommons/people/contact/Contact;Landroid/content/Context;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/TextView;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_Lcom_applozic_mobicommons_people_contact_Contact_Landroid_content_Context_Landroid_widget_TextView_Landroid_widget_TextView_Landroid_widget_TextView_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_Lcom_applozic_mobicommons_people_contact_Contact_Landroid_content_Context_Landroid_widget_TextView_Landroid_widget_TextView_Landroid_widget_TextView_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/applozic/mobicomkit/uiwidgets/people/fragment/ProfileFragment;Lcom/applozic/mobicommons/people/contact/Contact;Landroid/content/Context;Landroid/widget/TextView;Landroid/widget/TextView;Landroid/widget/TextView;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_Lcom_applozic_mobicommons_people_contact_Contact_Landroid_content_Context_Landroid_widget_TextView_Landroid_widget_TextView_Landroid_widget_TextView_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_applozic_mobicomkit_uiwidgets_people_fragment_ProfileFragment_Lcom_applozic_mobicommons_people_contact_Contact_Landroid_content_Context_Landroid_widget_TextView_Landroid_widget_TextView_Landroid_widget_TextView_, __args);
                } finally {
                }
            }
示例#18
0
 public static void AddLinks(global::Android.Widget.TextView textView, global::Java.Util.Regex.Pattern pattern, string @string, global::Android.Text.Util.Linkify.IMatchFilter matchFilter, global::Android.Text.Util.Linkify.ITransformFilter transformFilter)                         /* MethodBuilder.Create */
 {
 }
示例#19
0
 public static void AddLinks(global::Android.Widget.TextView textView, global::Java.Util.Regex.Pattern pattern, string @string)                         /* MethodBuilder.Create */
 {
 }
示例#20
0
 public static bool AddLinks(global::Android.Widget.TextView text, int mask)                         /* MethodBuilder.Create */
 {
     return(default(bool));
 }
示例#21
0
        public static unsafe void SetPayButtonText(global::Java.Lang.Object checkoutSessionActivity, global::Com.Adyen.Checkout.Core.Model.IPaymentMethod paymentMethod, global::Android.Widget.TextView payButton, global::Android.Widget.TextView surchargeTextView)
        {
            const string __id = "setPayButtonText.(Landroid/support/v7/app/AppCompatActivity;Lcom/adyen/checkout/core/model/PaymentMethod;Landroid/widget/TextView;Landroid/widget/TextView;)V";
            IntPtr       native_checkoutSessionActivity = JNIEnv.ToLocalJniHandle(checkoutSessionActivity);

            try
            {
                JniArgumentValue *__args = stackalloc JniArgumentValue[4];
                __args[0] = new JniArgumentValue(native_checkoutSessionActivity);
                __args[1] = new JniArgumentValue((paymentMethod == null) ? IntPtr.Zero : ((global::Java.Lang.Object)paymentMethod).Handle);
                __args[2] = new JniArgumentValue((payButton == null) ? IntPtr.Zero : ((global::Java.Lang.Object)payButton).Handle);
                __args[3] = new JniArgumentValue((surchargeTextView == null) ? IntPtr.Zero : ((global::Java.Lang.Object)surchargeTextView).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            }
            finally
            {
                JNIEnv.DeleteLocalRef(native_checkoutSessionActivity);
            }
        }