在项目开发过程中,会碰到许许多多的ListView,古老的方法就是每碰到一个ListView,就在xml文件里面写上emptyView,然后添加emptyView,其实在很多时候,不同ListView的emptyView是一样的,对此,写一个简单的帮助类,在ListView需要增加emptyView的时候,只要添加一行代码就可以实现了
帮助类的名称叫EmptyViewHelper,代码如...
分类:
移动开发 时间:
2015-03-04 12:58:22
阅读次数:
143
WebView是View的一个子类,可以让你在activity中显示网页。在布局中拉入一个WebView,一个Button,一个EditText
布局代码如下:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/t...
分类:
移动开发 时间:
2015-03-04 13:01:12
阅读次数:
173
1. 新建文件夹activemq/server
mkdir server
2.授权
chmod 777 server
3.下载activeMQ安装包,拷贝到/activemq/server目录下
apache-activemq-5.9.0-bin.tar.gz,下载地址:
http://activemq.apache.org/download.html
4....
分类:
其他好文 时间:
2015-03-04 13:00:40
阅读次数:
120
本文实例讲述了android获取当前运行Activity名字的方法,可以避免即时聊天再出现通知的情况。分享给大家供大家参考。具体方法如下:
最近在做聊天时需要知道当前Activity是哪一个Activity.整理了两种方法:
第一种:要方便一点(Service中无法使用)
private String getRunningActivityName() {
...
分类:
移动开发 时间:
2015-03-04 13:00:22
阅读次数:
151
拿网络上关于Python的面试题汇总了,给出了自认为合理的答案,有些题目不错,可以从中学到点什么.........
分类:
编程语言 时间:
2015-03-04 13:00:51
阅读次数:
228
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes ...
分类:
其他好文 时间:
2015-03-04 12:58:12
阅读次数:
177
Controller接口控制器详解(1)——SpringMVC...
分类:
编程语言 时间:
2015-03-04 12:57:22
阅读次数:
119
Two Gangsters
Time limit: 1.0 second
Memory limit: 64 MB
Two gangsters Harry and Larry had a rest at countryside. They decided to spend some time shooting, so they put several beer cans (...
分类:
其他好文 时间:
2015-03-04 12:57:40
阅读次数:
122
funcion parseXML()
{
try
{
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
}catch(e)
{
try
{
xmlDoc = document.implementation.createDocument("", "", null);
}catch(e)
{
alter(e.message);
r...
分类:
其他好文 时间:
2015-03-04 12:57:36
阅读次数:
140
Bicycle Codes
Time limit: 0.5 second
Memory limit: 64 MB
Den has two four-digit combination locks for protecting his bicycle from thieves. Every evening he arms the bicycle antitheft alar...
分类:
其他好文 时间:
2015-03-04 12:57:36
阅读次数:
144
Given n unique integers, number k (1<=k<=n) and target. Find all possible k integers where their sum is target.Example
Given [1,2,3,4], k=2, target=5, [1,4] and [2,3] are possible solutions....
分类:
其他好文 时间:
2015-03-04 12:58:47
阅读次数:
126
--发现那些SQL运行了大量的PARSE
select sql_text, parse_calls, executions
from v$sqlarea
order by parse_calls desc;
--SYS的总的PARSE情况
select name, value from v$sysstat where name like 'parse count%';
--CPU空间及繁...
分类:
数据库 时间:
2015-03-04 12:56:29
阅读次数:
215
static libtaty not initializer VC...
分类:
其他好文 时间:
2015-03-04 12:56:57
阅读次数:
112
import java.util.*;
import java.io.*;
public class 区间k大数查询 {
public static void main(String[] args){
Scanner in=new Scanner(new BufferedInputStream(System.in));
int n = in.nextInt();
int[] num =...
分类:
其他好文 时间:
2015-03-04 12:56:25
阅读次数:
121
Help Jimmy
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 8955
Accepted: 2871
Description
"Help Jimmy" 是在下图所示的场景上完成的游戏。
场景中包括多个长度和高度各不相同的平台。地面是最低的...
分类:
其他好文 时间:
2015-03-04 12:58:43
阅读次数:
208
Nintex Workflow 2013工作流动作(Workflow Action详解)...
分类:
其他好文 时间:
2015-03-04 12:57:05
阅读次数:
181
mybatis网站:http://mybatis.github.io/spring/zh/使用mybatis的优点:1、使用sql语句,效率比hibernate高2、sql语句在xml文件中进行统一管理,方便修改3、支持拼接sql
分类:
其他好文 时间:
2015-03-04 12:55:03
阅读次数:
99