上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: Animations的分类Animations从总体上可以分为两大类:1.Tweened Animations:该类Animations提供了旋转、移动、伸展和淡出等效果。 Alpha——淡入淡出,Scale——缩放效果,Rotate——旋转,Translate——移动效果。2.Frame-by-... 阅读全文
posted @ 2014-03-21 19:40 BaronZ 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 代码如下:Intent intent = new Intent();intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent.setAction(android.content.Intent.ACTION_VIEW);intent.setDataAndType(Uri.fromFile(new File(filePath)), type);context.startActivity(intent);异常信息提示如下:03-20 16:46:48.760: E/AndroidRuntime(30325): android.content.Acti 阅读全文
posted @ 2014-03-20 17:01 BaronZ 阅读(5123) 评论(0) 推荐(0) 编辑
摘要: GridView代码:android:verticalSpacing="8dp"android:horizontalSpacing="8dp"说明:gridview每个格子之间的间隔(垂直,水平)140320:GridView, ListView更改点击背景gridView.setSelector(... 阅读全文
posted @ 2014-03-13 15:48 BaronZ 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 再次踩bug:遍历删除list(java.util.ConcurrentModificationException)使用List list = new ArrayList();for(Long l : list){ if(l == 5){ list.remove(l); }} for(int i=0; i list = new ArrayList();Iterator it = list.iterator();while(it.hasNext){ if(it.next() == 5){ it.remove();//注意此处不能用list.re... 阅读全文
posted @ 2014-03-11 11:44 BaronZ 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 1.android生命周期大致可分为三个状态: stop: pause:此时这个activity在前台仍然部分可见, 但是另一个应用在它的上面运行 active:此时,activity在前台是完全可见的2.activity一开始会调用onCreate,当activity可见后,会调用onStart, onResum e。 当activity部分可见时,会调用onPause,当activity完全不可见时,会调用onStop。 如果用户退出这个应用,或者由于其他原因被杀了,onDestroy会被调用3.当应用不在前台,但是占用很多资源时,android可能会终止该应用。这时候当用户再次... 阅读全文
posted @ 2014-02-22 15:22 BaronZ 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1.Activity介绍An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. (说白了Activity就是一个和用户交互的界面) The wi 阅读全文
posted @ 2014-02-16 21:54 BaronZ 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1.实现SQLiteHelper来在android中使用SQLite.代码如下,来自android官网。public class FeedReaderDbHelper extends SQLiteOpenHelper { // If you change the database schema... 阅读全文
posted @ 2014-02-11 15:10 BaronZ 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1.@Autowired 可以省略写getter与setter,比如用在service层的dao成员变量 阅读全文
posted @ 2014-01-15 16:26 BaronZ 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 上一次自己使用Maven还是在大三在学校做项目时。现在公司有个新项目,想重新使用一下maven,顺便记下一些步骤1.安装maven 1.1 访问(http://maven.apache.org/),下载安装,步骤省略 1.2 修改maven/conf目录下的settings.xml文件,默认是在home目录下的.m2文件夹,避免重装系统之类的把这个目录删除,所以重新更改一下repo存储的目录 1.2.1 默认是这样的 /path/to/local/repo --> 1.2.2 修改成如下这样的 E:/dev_tools/mvn_repos 1.2.3 ... 阅读全文
posted @ 2014-01-15 11:55 BaronZ 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 0. 配置环境 0.0 安装apache 0.1 安装php1.数据库准备 1.1 创建数据库用户 1.2 创建discuz使用的数据库(编码:utf8-general-ci) 1.3 把1.2创建的数据库分配给1.1创建的用户。(之所以这样做,是为了防止数据库被注入时,只能操作本数据库,而不能操作数据库的user表,该表存有数据库的用户名和密码,会造成更大的损失)2. Discuz!安装过程 2.1 下载Discuz! 2.2 把下载的代码解压,并把upload文件夹上传到网站目录。(我使用的是apache,所以部署到apache的htdocs目录下) 2.3 访问安装页面(... 阅读全文
posted @ 2014-01-14 11:17 BaronZ 阅读(765) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页