应用程序图标 (Icon)应当是一个 Alpha 通道透明的32位 PNG 图片。由于安卓设备众多,一个应用程序图标需要设计几种不同大小,如: LDPI (Low Density Screen,120 DPI),其图标大小为 36 x 36 px。
MDPI (Medi...
分类:
移动开发 时间:
2015-03-28 15:53:41
阅读次数:
174
1.题目A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in that...
分类:
其他好文 时间:
2015-03-15 15:17:57
阅读次数:
142
移动设备有大有小,那么如何适应不同屏幕呢,这给我们编程人员造成了很多困惑。我也是突然想到这些问题,然后去网上搜搜相关东西,整理如下。首先,对下面这些长度单位必须了解。Android中的长度单位详解(dp、sp、px、in、pt、mm)看到有很多网友不太理解dp、sp和px的区别:现在这里介绍一下dp...
分类:
移动开发 时间:
2015-03-11 18:39:14
阅读次数:
156
A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in that cas...
分类:
其他好文 时间:
2015-03-09 21:00:37
阅读次数:
157
一、基本概念dip : Densityindependent pixels ,设备无关像素。dp :就是dippx : 像素dpi :dots per inch , 直接来说就是一英寸多少个像素点。常见取值 120,160,240。我一般称作像素密度,简称密度density: 直...
分类:
其他好文 时间:
2015-03-08 10:28:44
阅读次数:
165
这是一个比较新的聚类方法(文章中没看见作者对其取名,在这里我姑且称该方法为local density clustering,LDC),在聚类这个古老的主题上似乎最近一些年的突破不大,这篇文章算是很好的了,方法让人很有启发(醍醐灌顶),并且是发表在Science上,受到的关注自然非常大。本文的核心亮点:1是用比较新颖的方法来确定聚类中心,2是采用距离的local density来进行聚类的划分。...
分类:
其他好文 时间:
2015-02-22 21:56:28
阅读次数:
179
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple peaks,...
分类:
其他好文 时间:
2015-02-21 21:04:00
阅读次数:
193
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that...
分类:
其他好文 时间:
2015-02-12 22:53:43
阅读次数:
207
问题:测试时,发现应用在不同的显示器上显示效果不同(部分文本不能显示完全),自然想到屏幕适配的问题。按照思路整理如下:(一) 几个概念1,Screen size屏幕的尺寸,即对角线长度(单位inch-英寸)2, Screen density屏幕密度,即单位长度像素点数(pots/inches)3, ...
分类:
移动开发 时间:
2015-02-12 22:43:15
阅读次数:
334
This post builds on aprevious post, but can be read and understood independently.As part of my course on statistical learning, we created 3D graphics ...
分类:
其他好文 时间:
2015-02-09 10:43:24
阅读次数:
245