有时,Android系统控件无法满足我们的需求,因此有必要自定义View。具体方法参见官方开发文档:http://developer.android.com/guide/topics/ui/custom-components.html一般来说,自定义控件都会去重写View的onMeasure方法,因...
分类:
移动开发 时间:
2014-05-23 22:23:57
阅读次数:
342
linux常用命令
常用技巧
1、Ctrl + shift + F1-F6 可以进入字符界面
Ctrl + shift + F7 回到桌面
2、键盘的上下方向键:可以查找之前输入过的命令
Tab键 :用于补全文件名
3、...
分类:
系统相关 时间:
2014-05-20 14:27:10
阅读次数:
346
在android中,使用tabHost的时候,如果tab被点击,该tab所对应的activity被加载了,从别的tab切换回来的时候,activity不会再次被创建了(onCreate),所以要想每次点击tab都刷新activity,有如下方法:方法1把要刷新的对象添加到@Overridepubli...
分类:
其他好文 时间:
2014-05-19 21:55:41
阅读次数:
365
同样的html代码结构 配合不同的css代码 展示不一样的效果。html基本结构 土豪 官二代
富二代 Contents of first tab Contents of the second tab Contents of the third
tabcss代码1.tabs{ width:...
分类:
其他好文 时间:
2014-05-18 19:12:51
阅读次数:
254
C# 特性详解 特性(attribute)是被指定给某一声明的一则附加的声明性信息。
在C#中,有一个小的预定义特性集合。在学习如何建立我们自己的定制特性(custom attributes)之前,我们先来看看在我们的代码中如何使用预定义特性。
1 using System; 2 public c....
分类:
其他好文 时间:
2014-05-18 18:56:23
阅读次数:
305
//转换函数如下
int dayofyear(int year, int month, int day){
//k月份 leap判断闰年
int k, leap;
int tab[2][13] = {
{ 0,31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
{ 0,31, 29, 31, 30, 31, 30, 31, 31, 30,...
分类:
其他好文 时间:
2014-05-18 18:27:41
阅读次数:
278
//转换函数如下,其中通过指针同时向主函数传回月份和天数
void month_day(int year, int yearday, int *month, int *day){
//k月份,leap判断是否闰年(0非闰年1闰年)
int k, leap;
int tab[2][13] = {
{ 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30...
分类:
其他好文 时间:
2014-05-18 05:16:50
阅读次数:
262
下面的字符在 [XML]中被定义为 空白(whitespace)字符:空格
( )Tab (	)回车 (
)换行 (
)
分类:
其他好文 时间:
2014-05-18 01:40:27
阅读次数:
246
div+css命名规则-增强SEO页头:header登录条:loginBar标志:logo侧栏:sideBar广告:banner导航:nav子导航:subNav菜单:menu子菜单:subMenu搜索:search滚动:scroll页面主体:main内容:content标签页:tab文章列表:lis...
分类:
Web程序 时间:
2014-05-17 19:50:40
阅读次数:
415
很多 javascript 框架都提供了自定义事件(custom events),例如
jquery、yui 以及 dojo 都支持“document
ready”事件。而部分自定义事件是源自回调(callback)。回调将多个事件句柄存储在数组中,当满足触发条件时,回调系统则会从数组中获取对应的句...
分类:
编程语言 时间:
2014-05-17 19:04:40
阅读次数:
337