Hi,

I've found that the subject method has only one mapping in MFA:
SetSummary(int resId)
However there is no SetSummary(CharSequence text) mapping.

Is that just missing? (how could that be? I thought mappings are
automatically generated..)

Just in case, here is a helper "fix" method:

        public static void SetSummary(this ListPreference list, string val)
        {
            try{
                var clazz =
Android.Runtime.JNIEnv.GetObjectClass(list.Handle);
                var method = Android.Runtime.JNIEnv.GetMethodID(clazz,
"setSummary", "(Ljava/lang/CharSequence;)V");
                Android.Runtime.JNIEnv.CallVoidMethod(list.Handle, method,
                                           new Android.Runtime.JValue[]{
new Android.Runtime.JValue(new Java.Lang.String(val)) });
            }catch(Exception){}
        }


  Igor
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to