小编use*_*619的帖子

如何在Android中从互联网获取当前时间

我正在制作一个应用程序,我希望从互联网获取当前时间.

我知道如何从设备中获取时间System.currentTimeMillis,甚至在搜索了很多之后,我也没有得到任何关于如何从互联网上获取它的线索.

time android

21
推荐指数
3
解决办法
4万
查看次数

Marquee在Android中不滚动

我想在我的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)

我不知道为什么它不起作用.我已经经历了很多相关的帖子,但还没找到解决方案.请帮帮我.谢谢.

android marquee

4
推荐指数
1
解决办法
6563
查看次数

标签 统计

android ×2

marquee ×1

time ×1