单击按钮时启动的计时器

时间:2016-03-01 17:25:01

标签: android xamarin

所以我想要完成的是一个计时器,我在视觉工作室使用xamarin,它的目标是android.I在xaml中有一个名为txtStopwatch的TextView,我想开始计算第二个点击的第二个按钮。这个计时器和结束按钮被隐藏,直到按下启动按钮。

{"name":"vehicle_speed","value":2,"timestamp":1364310855.004000}
{"name":"accelerator_pedal_position","value":4,"timestamp":1364310855.004000}
{"name":"engine_speed","value":5,"timestamp":1364310855.005000}
{"name":"torque_at_transmission","value":-3,"timestamp":1364310855.008000}
{"name":"vehicle_speed","value":1,"timestamp":1364310855.008000}

1 个答案:

答案 0 :(得分:0)

假设秒表是秒表的一个实例(非常可怕的命名,从不使用实例的类类型名称):

/usr/bin/curl -k -u 'USERNAME':'PASSWORD' -X POST \
  --header 'Content-Type: application/json' \
  --header 'Accept: audio/wav' \
  --data '{"text":"hellow world","voice":"en-US_AllisonVoice"}' \
  'https://stream.watsonplatform.net/text-to-speech/api/v1/synthesize' > ./public/138106.wav