1. 一般性控件需要设置onclick事件才会有点击效果(selector)。2.
要写在selector的最后才会有点击效果。3. 制作.9格式图片选最小图,否则默认大小撑大控件。4.
如果将一个对象的属性设置为static,那么就算对象实例被回收了,该属性也存在内存,生命周期为app的生命周期。...
分类:
移动开发 时间:
2014-06-04 15:47:52
阅读次数:
372
曾经写网页,学css整体上不难,但就是元素定位,始终一知半解,直到今天,本着实践出真知的理念,经过认真测试,总结出了如下结论。css 定位:
positionstatic : 默认静止定位,元素在正常的文档流中无法移动定位。absolute
:独立元素,元素从文档流中脱离,会相对于父层(static...
分类:
Web程序 时间:
2014-06-04 15:40:44
阅读次数:
393
一维数组创建一维数组并输出public class OneDimensionalArray {
public static void main(String argas[]) { int i[]=new int[10]; for(int
j=0;j<i.len...
分类:
编程语言 时间:
2014-06-04 15:28:44
阅读次数:
283
package com.android.filebrowser;
import java.io.*;
import java.net.*;
public class FileEncodingDetect {
static final int GB2312 = 0;
static final int ASCII = 1;
static fi...
分类:
移动开发 时间:
2014-06-04 14:11:32
阅读次数:
439
命名的强制类型转换:
有static_cast、dynamic_cast、const_cast、reinterpret_cast四种。
dynamic_cast支持运行时类型识别。
static_cast:该运算符把exdivssion转换为type-id类型,但没有运行时类型检查来保证转换的安全性。...
分类:
编程语言 时间:
2014-06-04 13:59:48
阅读次数:
333
package com.shiyeqiang.tree;
import java.util.Stack;
public class BiTree {
public static void main(String[] args) {
// 首先构造叶子节点
BiTree leafA1 = new BiTree(4);
BiTree leafA2 = new BiTree(5);...
分类:
其他好文 时间:
2014-06-04 13:54:31
阅读次数:
374
文章目的介绍在.NET中取得代码行数的方法代码[STAThread]
static void Main(string[] args)
{
ReportError("Yay!");
}
static private void ReportError(string Message)
{
StackFrame CallStack = new StackFrame(1, true);...
分类:
Web程序 时间:
2014-06-04 13:44:20
阅读次数:
336
新建立MVC3项目,名为12-1ControllersAndActions,使用空模板。Global.asax中默认的路由定义为: public static
void RegisterRoutes(RouteCollection routes) { ...
分类:
其他好文 时间:
2014-06-03 15:40:46
阅读次数:
264
C++类型转换分为:隐式类型转换和显式类型转换第1部分.隐式类型转换又称为“标准转换”,包括以下几种情况:1)
算术转换(Arithmetic conversion) : 在混合类型的算术表达式中,
最宽的数据类型成为目标转换类型。intival=3;doubledval=3.14159;ival+...
分类:
其他好文 时间:
2014-06-03 15:29:55
阅读次数:
264
/*通过直接预分区的方式建表*/private static void
printTableRegion(String tableName)throws IOException{ System.out.println("Prtint
region of table:"+tableName);/...
分类:
其他好文 时间:
2014-06-03 14:51:05
阅读次数:
207