注:根据网上资料整理如下首先 onMeasure方法是为了得到各个View大小的函数fill_parent-->public static final int EXACTLY = 1 public static final int AT_MOST = 2 << MODE_SHIFT;这是makeMe...
分类:
移动开发 时间:
2014-07-19 19:14:11
阅读次数:
241
原文:http://blog.csdn.net/lgm277531070/article/details/6922645 A.pom.xml属性介绍: project: pom的xml根元素。 parent: 声明继承。 modules: 声明聚合,该值是一个当前POM的相对目录。用户项目的聚合。 ...
分类:
其他好文 时间:
2014-07-19 18:21:07
阅读次数:
163
Handler的实质就是异步消息处理。实例一:Handler的基本用法XML布局代码:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<T..
分类:
移动开发 时间:
2014-07-19 16:28:30
阅读次数:
334
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 32192
Accepted: 14093
Description
A numeric sequence of ai is ordered if a1 a...
分类:
其他好文 时间:
2014-07-19 11:47:53
阅读次数:
169
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 32192
Accepted: 14093
Description
A numeric sequence of ai is ordered if
a1 a2...
分类:
其他好文 时间:
2014-07-19 11:11:54
阅读次数:
159
最长公共子序列(LCS) 代码(C)本文地址:http://blog.csdn.net/caroline_wendy题目: 给定两个字符串s,t, 求出这两个字符串最长的公共子序列的长度. 字符串的子序列并一定要连续, 能够包含间隔.即最长公共子序列问题(LCS, Longest Common Su...
分类:
其他好文 时间:
2014-07-19 09:07:09
阅读次数:
193
Use an empty temporary constructor function F(). Set the prototype of F() to be the parent object. Return a new instance of the temporary construct...
分类:
编程语言 时间:
2014-07-19 08:36:01
阅读次数:
276
先看效果图
这个是我们自己的apk点击之后的效果
下边是布局文件
activity_main.xml主布局文件
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="matc...
分类:
移动开发 时间:
2014-07-19 02:15:46
阅读次数:
280
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-18 18:17:46
阅读次数:
290
1、不要使用绝对布局2、尽量使用match_parent而不是fill_parent。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape自定义。5、如果需要在特定分辨率下适配,可以在res目录上新建layout-Hx...
分类:
其他好文 时间:
2014-07-18 15:02:25
阅读次数:
262