[mono-android] Redraw/refresh problem

Tim Kelly tim.kelly at DesignerWare.com
Mon Dec 19 18:21:18 EST 2011


Might you be missing the scroll control on your interface?

 

________________________________

From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Christian Weyer
Sent: Monday, December 19, 2011 6:00 PM
To: Monodroid at lists.ximian.com
Subject: [mono-android] Redraw/refresh problem

 

Hi all,

 

I have code like this (using Monodroid.Dialog from 
https://github.com/kevinmcmahon/MonoDroid.Dialog
<https://github.com/kevinmcmahon/MonoDroid.Dialog> ):

 

private void RegisterMessagesHandler()

{

    Task.Factory.StartNew(() =>

    {

        while (true)

        {

            try

            {

 

                var message = broker.ReceiveAndDeleteMessage(topicName +
"/Subscriptions/" + subscriptionName);

 

                if (!String.IsNullOrWhiteSpace(message))

                {

                    RunOnUiThread(delegate

                    {

                        messages.Elements.Add(new
StringElement(message));

                        da.NotifyDataSetChanged();

                    });

                }

 

            }

            catch (Exception ex)

            {

                Console.WriteLine(ex);

            }

        }

    });

}

 

Everything seems to work fine. But after three and more entries the list
gets messed up (screenshot):

 

 

 

Any idea?

 

Thanks,

-Christian 

 

________________________________

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1890 / Virus Database: 2108/4690 - Release Date:
12/19/11

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111219/ebedf445/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 19537 bytes
Desc: image002.jpg
Url : http://lists.ximian.com/pipermail/monodroid/attachments/20111219/ebedf445/attachment-0001.jpe 


More information about the Monodroid mailing list