How to set time on android analog clock component?

寵の児 提交于 2019-12-08 11:59:55

问题


i was trying to write an analog world clock app. i wanted to use the analog clock component

<AnalogClock android:id="@+id/MyAnalogClock" /> 

This shows the system time. But how do we set a different time(say, a second clock showing time for a different country) to the analog clock component


回答1:


You cannot (I checked the source code).

But as Android is open source, you are invited to add the function.

The Widget is referring to the phones timezone only.



来源:https://stackoverflow.com/questions/4291923/how-to-set-time-on-android-analog-clock-component

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!