参考链接:http://blog.csdn.net/coderinchina/article/details/40964205
我们项目中经常会加载图片,有时候如果加载图片过多的话,小则导致程序很卡,重则导致oom异常从而导致App挂了,今天翻译下https://developer.android.com/training/displaying-bitmaps/index.html,学习Go...
分类:
移动开发 时间:
2014-12-01 17:44:21
阅读次数:
212
进行android的开发,必须深入了解Activity的生命周期。而对这个讲述最权威、最好的莫过于google的开发文档了。本文的讲述主要是对http://developer.android.com/training/basics/activity-lifecycle/index.html 的翻译,...
分类:
移动开发 时间:
2014-11-29 10:13:53
阅读次数:
176
与上一篇类似 ~~ 只不过是非线性数据 #include "stdafx.h" #include #include #include #include #define NTRAINING_SAMPLES 100 // Number of training samples per class
#def...
分类:
系统相关 时间:
2014-11-27 22:01:20
阅读次数:
305
官网地址:https://developer.android.com/intl/zh-tw/training/material/get-started.html
Apply the Material Theme 运用材料主题
name="AppTheme" parent="android:Theme.Material">
theme cus...
分类:
移动开发 时间:
2014-11-27 16:22:15
阅读次数:
214
官网地址:https://developer.android.com/intl/zh-tw/training/material/theme.html
新的Material主题提供了:
系统Widgets可设置它们的调色板
系统Widgets的触摸反馈动画
Activity的过渡动画
您可以自定义Material主题,根据你的品牌标识,用一个调色板来控制。
可...
分类:
移动开发 时间:
2014-11-27 16:18:27
阅读次数:
229
官网:https://developer.android.com/intl/zh-tw/training/material/shadows-clipping.html
Material设计为UI元素引入了一个depth值,depth帮助用户了解每个元素相对重要性,重点关注手头的任务
每个View的elevation值,相当于z属性,它决定了阴影的大小:z越大,阴影越大。
Vi...
分类:
移动开发 时间:
2014-11-27 16:17:45
阅读次数:
168
Quaro上的问答,我感觉回答的非常好!What are the advantages of different classification algorithms?For instance, if we have large training data set with approx more t...
分类:
编程语言 时间:
2014-11-25 12:42:25
阅读次数:
350
http://developer.android.com/training/wearables/data-layer/events.html#WaitSection 1 :Wait for the Status of Data Layer Calls- 等待数据操作结果You'll notice t...
分类:
移动开发 时间:
2014-11-22 18:40:15
阅读次数:
243
算法要点:knn(k-nearstneighbor)1:k:=最近邻点数,D:=training set of data2:for (待测点z)3:计算z和每个样例(x,y)的距离4:选择离z最近的k个训练样例的集合5:统计第4步得到的点哪一类多,则z就属于哪一类6:end for数据:librar...
分类:
编程语言 时间:
2014-11-21 23:14:59
阅读次数:
872
1、DrawerLayout? 谷歌官方提供 (1) https://developer.android.com/training/implementing-navigation/nav-drawer.html 下载它的demo,导入运行。 ?(2)Support v4 Demos---->Widget----->Drawer layout ?...
分类:
移动开发 时间:
2014-11-18 14:53:26
阅读次数:
253