直接上效果图:
实现步骤:
1.主界面activity_main.xml很简单,一个按钮
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_wid...
分类:
移动开发 时间:
2014-07-19 18:27:19
阅读次数:
222
先看效果图
这个是我们自己的apk点击之后的效果
下边是布局文件
activity_main.xml主布局文件
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="matc...
分类:
移动开发 时间:
2014-07-19 02:15:46
阅读次数:
280
注解是基于Spring的。所谓的是基于Spring而言的,所以对注解的配置是在spring的配置文件中的,一般放在主配置文件中。Spring配置中常用的命名空间,一般的Spring配置都能满足需求:涉及到注解的部分是:xmlns:context="http://www.springframework...
分类:
编程语言 时间:
2014-07-19 00:06:19
阅读次数:
214
在安卓中不喜欢系统默认的标题栏,那么如何让自定义一个自己的标题栏呢。
自定义后的标题栏如下:
首先这里需要定义一个自定义的标题栏布局 title.xml文件 (里边需要两个图片这个很简单)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:or...
分类:
移动开发 时间:
2014-07-18 22:31:27
阅读次数:
262
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xml...
分类:
其他好文 时间:
2014-07-17 11:02:01
阅读次数:
298
android的ViewPager是一个可以支持手势来切换View的控件,很适合来做用户引导的页面:
如果有4张图,那么我们这样来写Layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/whats_new_main_view"
andr...
分类:
移动开发 时间:
2014-07-16 10:07:52
阅读次数:
304
淘宝商城servlet的路径web.xml部分
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/x...
分类:
Web程序 时间:
2014-07-16 08:28:16
阅读次数:
208
和上一篇一样,首先看一下项目结构和jar包
web.xml
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.su...
分类:
编程语言 时间:
2014-07-13 17:26:19
阅读次数:
336
首先是项目和所需要的包截图:
修改xml文件:
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/...
分类:
编程语言 时间:
2014-07-13 16:12:54
阅读次数:
266
Android自定义View实现很简单继承View,重写构造函数、onDraw,(onMeasure)等函数。如果自定义的View需要有自定义的属性,需要在values下建立attrs.xml。在其中定义你的属性。在使用到自定义View的xml布局文件中需要加入xmlns:前缀="http://schemas.android.com/apk/res/你的..
分类:
移动开发 时间:
2014-07-13 14:52:51
阅读次数:
211