本节为UI部分,顺带简单的使用Thread+handler
布局类:只有两个xml文件
activity_main:主布局,仅仅只有一个listView不在给出。
item.xml使用的是相对布局,用来显示listView的各项。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"...
分类:
其他好文 时间:
2015-04-22 15:25:04
阅读次数:
210
今天在使用ScrollView时出现错误,提示: Unexpected namespace prefix "xmlns" found for tag ScrollView ? 布局如下: <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" ??? ??x...
分类:
移动开发 时间:
2015-04-21 18:54:25
阅读次数:
181
只需要在页面引用这样的命名空间:xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"之后,在JSF的控件的html5属性加上前缀"pt:"即可完整显示样式了。示例代码如下: 此处是给输入框增加placeholder属性。
分类:
Web程序 时间:
2015-04-21 12:40:50
阅读次数:
157
在android中选择图片是一个很常见的功能,图片的来源通常情况下是从相机获取和从相册获取两种。
先来写一个简单的选择按钮和一个能显示图片的ImageView<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2015-04-20 20:58:02
阅读次数:
188
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
andr...
分类:
其他好文 时间:
2015-04-20 18:35:19
阅读次数:
118
根据郭神的博客写了个小demo,详细的方法都卸载注释里了,先上效果图:
布局代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout...
分类:
系统相关 时间:
2015-04-20 15:05:12
阅读次数:
285
错误解决: springmvc的头部标识写错。情况是这样的:12345<beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmln....
分类:
编程语言 时间:
2015-04-19 20:59:24
阅读次数:
226
首先看效果图,网易新闻客户端的特点是双向侧滑,并且左上角的图标会随着菜单的侧滑会有动画效果。
我们采用Toolbar和DrawerLayout实现双向侧滑以及actionbar在菜单文件里先定义菜单<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.androi...
分类:
其他好文 时间:
2015-04-19 18:04:21
阅读次数:
319
点击显示展开项,先看效果:
开始,1.先搞个XML显示主界面:
main_activity.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout...
分类:
移动开发 时间:
2015-04-19 17:58:06
阅读次数:
146
报错信息:Attribute "xmlns" was already specified for element "web-app"由于项目的重命名,出现了xmlns的重复赋值,这可能是eclipse自己设定的一种方式,重新为项目匹配合适的配置。删除其中一个即可
分类:
移动开发 时间:
2015-04-19 01:09:36
阅读次数:
412