我正在制作一个应用程序,我希望从互联网获取当前时间.
我知道如何从设备中获取时间System.currentTimeMillis,甚至在搜索了很多之后,我也没有得到任何关于如何从互联网上获取它的线索.
我想在我的Android应用程序中使用marquee的功能,并使用此代码来实现目标:
<TextView
android:id="@+id/marqueetext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:lines="1"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:text="hello all how are you"
android:textColor="#ff4500"
/>
MarqueeText = (TextView)ShowTheMessages.this.findViewById(R.id.marqueetext);
MarqueeText.setSelected(true);
Run Code Online (Sandbox Code Playgroud)
我不知道为什么它不起作用.我已经经历了很多相关的帖子,但还没找到解决方案.请帮帮我.谢谢.