内容可以左右滑动,因为使用了ViewPager(我这里用了V4包)view_pager_main.xml activitypackage
com.example.actionBarTest.actionBarTabViewPager;import
android.app.ActionBar;impo...
分类:
移动开发 时间:
2014-05-12 16:08:41
阅读次数:
409
字段摘要staticintMAX_VALUE 保持 int 类型的最大值的常量可取的值为
231-1。staticintMIN_VALUE 保持 int 类型的最小值的常量可取的值为 -231。staticintSIZE 以二进制补码形式表示 int
值的位数。staticClassTYPE ...
分类:
编程语言 时间:
2014-05-12 15:49:08
阅读次数:
423
使用公司的maven服务器,可以加速jar包的下载。如果要使用公司的maven服务器,需要对本地maven配置文件conf/settings.xml做相应修改,具体改法有两种。一、mirror
方式思路是利用 mirror 配置支持通配符号,于是可以指定所有的 repository 都去找公司的r....
分类:
其他好文 时间:
2014-05-10 19:56:57
阅读次数:
686
两个Activity之间的传参的具体做法如下: 1.新建一个Bundle类 Bundle
bundle=new Bundle(); 2.向Bundle类中放入数据(类似于map) bundle.putString("key" ," value");
3.新建一个intent对象,并将该bund...
分类:
其他好文 时间:
2014-05-06 09:05:48
阅读次数:
349
在J2EE中,注解使得开发更加便利,省去了生成XML文件的过程,在Hibernate实体声明中,可以简简单单的用几个注解就可以免去生成
一个XML的文件操作。这里就主要论述一下annotation的用法和自定义注解处理器。当在创建描述符性质的类或接口时,有大量重复性的工作时候,就
可以利用注解来.....
分类:
编程语言 时间:
2014-05-06 08:52:35
阅读次数:
341
Write an efficient algorithm that searches for
a value in anmxnmatrix. This matrix has the following properties:Integers in
each row are sorted from l...
分类:
其他好文 时间:
2014-05-02 10:41:53
阅读次数:
267
Given a sorted array and a target value, return
the index if the target is found. If not, return the index where it would be if
it were inserted in or...
分类:
其他好文 时间:
2014-05-02 09:54:11
阅读次数:
269
1、优缺点
优点:
SAX 从根本上解决了 DOM 在解析 XML 文档时产生的占用大量资源的问题。其实现是通过类似于流解析的技术,通读整个 XML 文档树,通过事件处理器来响应程序员对于 XML 数据解析的需求。由于其不需要将整个 XML 文档读入内存当中,它对系统资源的节省是十分显而易见的,它在一些需要处理大型 XML 文档以及性能要求较高的场合有起了十分重要的作用。支持 XPath 查询...
分类:
编程语言 时间:
2014-05-02 06:47:52
阅读次数:
477
Zxing 竖屏切换 android
在google上下载的ZxingDemo 为横屏状态
我简单的在Androidmanifest.xml把Activity换成竖屏android:screenOrientation="portrait"
屏幕虽然正了 但是屏幕上显示的拍摄画面还是横着的
查了一些网上的资料 结合自己手工调试
在这里总结分享一下
步骤:
1) 在AndroidManifest.xml中把 标签 CaptureActiv...
分类:
移动开发 时间:
2014-05-02 05:14:38
阅读次数:
408
檔案說明pom.xml-maven設定Main.class主程式StoreOrderSyncTask.class-一個需要固定執行的Task,裡面只有一個方法Spring-Quartz.xml-設定要固定執行的Task,和執行的時間pom.xml<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSc..
分类:
编程语言 时间:
2014-05-02 03:52:19
阅读次数:
339