CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 通讯/手机编程 android开发

文件名称:addjsym

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2016-05-27
  • 文件大小:
    150.43kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

应用平台: Android

应用案例: 大量商品的限时抢购等。

类似于这样的倒计时,不知道大家有没有遇到过,大家又能想到哪些方案?????

1、每一秒到服务器上面去取一次数据?

2、每一秒,通过一个Handler去循环遍历,对每一条去刷新一次时间控件?

3、还是大家有其它的想法。



上述两种方案都不可取:

1、网络连接有时间差,况且数据访问量大的情况,服务器没法承受。

2、 循环遍历可行,但是要在数据量少的情况下,如果数据量过大,那么会卡屏,对系统内存的占用也较高。

本源码的方案是对Android 系统中 DigitalClock 进行一次封装。

通过继承以下方法并改变内部的实现。 -Application platform: Android

Application case: a large number of commodities, such as the rush to buy a lot of goods.

Similar to such a countdown, do not know if we have encountered, we can think of what?????????

1, every second to the server to get a data?

2, every second, through a Handler to loop traversal, every time to refresh the time control?

3, or we have other ideas.

The above two schemes are not desirable:

1, the network is connected with the time difference, moreover, the amount of data access, the server can not afford.

2, loop traversal is feasible, but in the case of a small amount of data, if the data is too large, then the card screen, the system memory occupancy is also higher.

The source of the program is to Android system in a package DigitalClock.

By inheriting the following methods and changing the internal implementation.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

bin/
gen/
gen/com/
gen/com/veally/
gen/com/veally/timesale/
gen/com/veally/timesale/BuildConfig.java
gen/com/veally/timesale/R.java
libs/
res/
res/drawable-hdpi/
res/drawable-hdpi/ic_launcher.png
res/drawable-hdpi/topbar.png
res/drawable-ldpi/
res/drawable-ldpi/ic_launcher.png
res/drawable-mdpi/
res/drawable-mdpi/ic_launcher.png
res/drawable-xhdpi/
res/drawable-xhdpi/ic_action_search.png
res/drawable-xhdpi/ic_launcher.png
res/layout/
res/layout/activity_time_sale.xml
res/layout/adapter_item.xml
res/values/
res/values/dimens.xml
res/values/strings.xml
res/values/styles.xml
src/
src/com/
src/com/veally/
src/com/veally/timesale/
src/com/veally/timesale/ActivityTimeSale.java
src/com/veally/timesale/AdapterSaleItem.java
src/com/veally/timesale/CustomDigitalClock.java
src/com/veally/timesale/ProductItem.java
.classpath
.project
AndroidManifest.xml
proguard-project.txt
project.properties
说明.htm
assets/
assets/images/
assets/images/mini1.jpg
assets/images/mini2.jpg
assets/images/mini3.jpg
assets/images/mini4.jpg
assets/images/mini5.jpg
assets/images/mini6.jpg
assets/images/mini7.jpg
assets/images/mini8.jpg

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com