Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Label update

$
0
0

Hi everyone,
i am new on android, what is my wrong?
i see just Done on screen after 10 seconds, i want to see , Progress : 10%,Progress : 20% etc...

lbl.Text = "Starting";
for (var i = 0; i<10;i++)
{
System.Threading.Thread.Sleep(1000);
activity.RunOnUiThread ( () => {
lbl.Text = String.Format ("Progress : {0}0%", i+1);
});
}
lbl.Text = "Done";


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>