package com.google.tabhost;
import android.app.TabActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.widget.TabHost;
public class HelloTabHost exten...
分类:
其他好文 时间:
2014-08-10 01:50:19
阅读次数:
423
MainActivity如下:
package cc.cn;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;
/**
* Demo描述:...
分类:
移动开发 时间:
2014-08-09 23:17:49
阅读次数:
293
开始学IOS的时候没怎么接触过block语句,在后来用到的越来越多,就不得不学了,刚开始理解比较困难的,然后自己做了一个例子就慢慢理解了...
分类:
移动开发 时间:
2014-08-09 18:46:28
阅读次数:
261
struts2中theme属性包括xhtml,html,simple,ajax 。默认是xhtmltheme:设置struts2标签的主题,默认为xhtml。 theme=xhtml时:会默认额外生成tr,td。 theme=simple时:就生成标签所对应的html标签形式。在默认情况下,表单元素...
分类:
其他好文 时间:
2014-08-09 13:15:07
阅读次数:
189
java日历类Calendar简单使用博客分类:javaJava代码importjava.util.Calendar;importjava.util.TimeZone;publicclassTest1{publicstaticvoidmain(String[]args){//指定东八区,即北京时间C...
分类:
移动开发 时间:
2014-08-08 21:05:16
阅读次数:
295
QModelIndexindex=ui.tree_FileLocal->indexAt(pos);QMenu*pMenu=newQMenu(ui.tree_FileLocal);if(ui.tree_FileLocal->columnCount()==7){QAction*refresh=pMenu->addAction(tr("刷新(&Y)"));refresh->setShortcut(Qt::Key_F5);connect(refresh,SIGNAL(trigger..
分类:
其他好文 时间:
2014-08-08 18:31:06
阅读次数:
333
lo4j 是特别常用的记录日志,调试代码的工具代码。我对它的了解并不深,仅限于使用。下边我就说说怎么个使用法吧。第一步:添加jar包,这两个必不可少第二步:创建log4j.properties文件并配置自己需要的信息如:log4j.rootLogger=debug, stdoutlog4j.appe...
分类:
其他好文 时间:
2014-08-08 17:23:06
阅读次数:
173
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2014-08-08 12:30:45
阅读次数:
193
//***简单动画 [UIView animateWithDuration:3 animations:^{// _animationView.center = CGPointMake(arc4random()%320, arc4random()%480);//改变中心点// _animat...
分类:
移动开发 时间:
2014-08-07 22:49:55
阅读次数:
281