1,创建数据源 找到要导出的GridView中的数据。2,重写VerifyRenderingInServerForm方法。 public override void VerifyRenderingInServerForm(Control control) { }3,编写导到Excel的方法。pri....
分类:
Web程序 时间:
2014-08-26 17:05:16
阅读次数:
220
原理是在onMeasure中得到隐藏内容的高度,点击这个view的时候对隐藏的view startAnimation,让它的高度从0增长到onMeasure得到的这个View的measureHeight
具体这样写:
public class ExpandableLayout extends LinearLayout {
private Context mContext;
pri...
分类:
其他好文 时间:
2014-08-25 07:39:44
阅读次数:
189
daniel@daniel-mint ~/latex/linux/itext/daniel $ cat asm.sh header_start=0header_len=15xref_start=$(strings -a -t d $1 | grep -e "\bxref\b" | awk '{pri...
分类:
系统相关 时间:
2014-08-21 19:00:54
阅读次数:
227
/*Prime Cuts
Description
A prime number is a counting number (1, 2, 3, ...) that is evenly divisible only by 1 and itself. In this problem you are to write a program that will cut some number of pri...
分类:
其他好文 时间:
2014-08-21 17:14:24
阅读次数:
283
volatile |?v?l?ta?l, American -tl|adjective①Chemistry易挥发的 ?substance, liquid?②figurative(changeable)变化无常的 ?person, mood?; 不稳定的 ?situation, market, pri...
分类:
其他好文 时间:
2014-08-21 11:14:34
阅读次数:
172
指针数组 && 数组指针
char (*ptr)[5]; //定义一个指向数组指针ptr,指向包含5个char类型的数组
char *a[5]; //定义一个指针数组a,包含5个char*类型指针
#include
int main(void)
{
char *a[5]={"red","white","blue","dark","green"};
pri...
分类:
编程语言 时间:
2014-08-19 12:55:44
阅读次数:
230
Task Schedule
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3651 Accepted Submission(s): 1271
Problem Description
Our geometry pri...
分类:
其他好文 时间:
2014-08-18 20:31:02
阅读次数:
440
在多线程的编程环境中,锁的使用必不可少! 于是,今天来总结一下为共享资源加锁的操作方法。 一、使用synchronized方式 ????//线程1 ????dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRI...
分类:
编程语言 时间:
2014-08-18 18:58:33
阅读次数:
276
当我们搜索单例模式的时候,能看到很多例子,什么懒汉式、饿汉式,大概如下:public class Singleton { private static Singleton instance=null; private Singleton(){ System.out.pri...
分类:
编程语言 时间:
2014-08-16 11:05:50
阅读次数:
182
#include void main(){ int i,j,k; for (i=1;i<6;i++) { for(k=0;k<5-i;k++) { printf(" "); } for (j=0;j<2*i-1;j++) { pri...
分类:
其他好文 时间:
2014-08-16 09:42:40
阅读次数:
186