[Monodroid] Change in preview 13 related to EditText.Text
Torello Querci
tquerci at gmail.com
Wed Mar 2 05:37:02 EST 2011
2011/3/2 Orlando Silva <orlandolsilva at gmail.com>:
> Hello,
> Now in P13, when i try to do:
> "
> string text = "new string";
> this.TextView.TextFormatted = text;
> "
> I get the compile error "Cannot implicitly convert type 'string' to
> 'Java.Lang.ICharSequence' "? Now, how can i set an string value to the
> TextView's controller?
> Thanks for all your help,
> Orlando
>
If you want to use e TextFormatted you need pass a IChar sequence.
For example in my code I pass a Android.Text.Html.FromHtml object to a
TextFormatted.
In other part of my code I need to change from
menu.SetHeaderTitle(server.Name);
to
Java.Lang.ICharSequence str = new Java.Lang.String(server.Name);
menu.SetHeaderTitle(str);
As write from Dan Kibby this is intentional and write in the release notes
Best Regards, Torello
>
> On Fri, Feb 25, 2011 at 11:28 PM, Dan Kibby <DKIBBY at motorstate.com> wrote:
>>
>> Intentional...release notes clarify
>>
>>
>> Chris Erickson <chris at cartopac.com> wrote:
>>
>> Hello,
>> In preview 13, I had something break where I was setting an EditText.Text
>> property to null and I'm now getting a null reference exception…
>>
>> Was this change intentional or is this a defect?
>>
>> chris erickson
>> chris at cartopac.com
>> _______________________________________________
>> Monodroid mailing list
>> Monodroid at lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
More information about the Monodroid
mailing list