1、main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"...
分类:
移动开发 时间:
2014-07-08 20:00:21
阅读次数:
277
前几篇文章介绍了Listview,但在实际开发中也经常会用到多层的Listview来展示数据,比如qq中的好友展示,所以这张来了解一下ExpandableListview,基本思想与Listview大致是相同的,所以用起来会比较方便。
实现效果图:
程序代码:
布局文件:
activity_main.xml:
<RelativeLayout xmlns:android="...
分类:
移动开发 时间:
2014-07-06 12:28:51
阅读次数:
263
storm有两种运行模式(本地模式和集群模式)1、首先创建一个类似于HelloWorld的简单程序,以便进入storm的大门,包结构如下:2、从包结构可以知道,这是一个MavenProject,pom.xml的内容如下:<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org..
分类:
其他好文 时间:
2014-07-04 06:08:42
阅读次数:
490
一、silverlight 静态页面1、时间控件:DatePicker ,添加引用: xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls",触发事件:SelectedDateChanged...
分类:
Web程序 时间:
2014-07-02 19:28:42
阅读次数:
196
先上效果图,选择不同的模块,滑动会通过动画形式滑过去,这种适合新闻客户端多种栏目的展示:
这么写Layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="...
分类:
移动开发 时间:
2014-07-01 15:43:33
阅读次数:
198
先上效果图:
Title的Layout为:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-07-01 11:24:30
阅读次数:
289
由于C3P0使用比较广泛,下面介绍C3P0在spring和hibernate3配置中的一些常用配置项,首先先把配置文件贴出来先,配置的文件名为dbContext.xml<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www...
分类:
编程语言 时间:
2014-07-01 09:31:52
阅读次数:
202
先上效果图:
Title的Layout为:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-06-30 18:44:18
阅读次数:
269
最近在做一个仿电商的APP,由于前面使用了Fragment技术,现在想要在一个Fragment中做出TabHost的界面效果,经过查找资料找到了解决办法,特分享出来!(新人勿喷!)首先要使用的控件是SupportV4里面的控件,XML如图<android.support.v4.app.FragmentTabHost
xmlns:android=..
分类:
其他好文 时间:
2014-06-28 06:38:50
阅读次数:
254
首先你要Spring所有的包导入
1、配置前端控制器DispatcherServlet 在web.xml中
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/ja...
分类:
编程语言 时间:
2014-06-27 07:25:51
阅读次数:
318