逐帧动画与传统的卡通相似,也有点像gif。就是搞几张图片,根据顺序显示。
AnimationDrawable类可以用来创建一个新的表示为一个Drawable资源的逐帧动画,可以使用XML,在应用程序的res/drawable文件夹下讲动画Drawable资源定义为外部资源。
下面看程序和效果:
<animation-list xmlns:android="http://schemas.an...
分类:
其他好文 时间:
2014-08-13 01:20:54
阅读次数:
238
一、需求分析
使用Spring Batch对XML文件进行读写操作: 从一个xml文件中读取商品信息, 经过简单的处理, 写入另外一个xml文件中.
二、代码实现
1. 代码结构图:
2. applicationContext.xml
<beans xmlns="http://www.springframework.org...
分类:
编程语言 时间:
2014-08-13 01:20:25
阅读次数:
371
先定义一个显示条目的xml布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation=...
分类:
移动开发 时间:
2014-08-12 17:10:44
阅读次数:
221
View Animation, 即显示在view上的Tween Animation
Tween动画,本质上不改变View的真实位置
两种实现方式,一种在xml中定义,一种直接在代码里定义
xml定义方式:
位移动画translate
<translate xmlns:android="http://schemas.android.com/apk/res/android"
and...
分类:
移动开发 时间:
2014-08-11 21:33:23
阅读次数:
372
Xamarin.Forms 在启动的时候相当慢,必须添加一个启动界面,步骤如下:
1.将启动画面的图片命名为:splash_screen.png,并拷贝到 Resources 文件夹下的相应 Drawable 文件夹中;
2.在其中的 Drawable 文件夹下创建 splashscreen.xml ,内容为:
<bitmap xmlns:android="http://sch...
分类:
移动开发 时间:
2014-08-11 17:47:32
阅读次数:
231
使用过SSH注解的屌丝们都知道,要想使用注解需要在applicationContext.xml配置文件里面开启注解配置,开启方式如下:1.头部声明需加入xmlns:context="http://www.springframework.org/schema/context"http://www.sp...
分类:
其他好文 时间:
2014-08-11 14:33:32
阅读次数:
261
最近使用目录最新版本的SPRING、HIBERNATE、STRUTS使用MAVEN搭建了一个全注解的环境。记录一下
POM文件:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http:/...
分类:
编程语言 时间:
2014-08-11 12:06:12
阅读次数:
281
利用微软的XSL的继承特性,用户可以自定义XSL函数.基本原理是用户写的脚本代码写在msxsl中,并设置这部分msxsl继承到用户自定义空间中,那么用户就可以通过用户自定义空间使用msxsl中的脚本代码.步骤:1. xsl:stylesheet中定义msxml和用户空间. xmlns:msxsl="...
分类:
其他好文 时间:
2014-08-10 21:18:10
阅读次数:
885
使用步骤: 步骤一、在spring配置文件中引入<tx:>命名空间 <beans xmlns="http://www.springframework.org/schema/beans" ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ?xmlns:tx="http://www.spri...
分类:
编程语言 时间:
2014-08-10 10:31:10
阅读次数:
373
先上效果图:
Layout为:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@...
分类:
移动开发 时间:
2014-08-10 10:27:50
阅读次数:
631