Looper threads issue? But not using Animator

前端 未结 1 418
野趣味
野趣味 2020-12-21 08:31

I am running a loop to SynthesizeToFile (in this example I will run the loop 10 times)

for(int i = 0; i< 10; i++)
{
    textToSpeech.Synthesi         


        
1条回答
  •  甜味超标
    2020-12-21 09:21

    Place your UI changes within a RunOnUithread Action:

    ie.

    RunOnUiThread(() => 
    {
        FloatingActionButton FAB = FindViewById(Resource.Id.fab);
        FAB.Visibility = ViewStates.Visible;
    });
    

    0 讨论(0)
提交回复
热议问题