由于最近项目的原因,接触到了sitemesh。
SiteMesh是一个用来在JSP中实现页面布局和装饰(layout and decoration)的框架组件,能够帮助网站开发人员较容易实现页面中动态内容和静态装饰外观的分离。提供了一种在网站中更有效的组织页面布局的方式。
SiteMesh设计思想是,用户发送request至服务器,服务器根据此request生成动态数据,生成网页...
分类:
其他好文 时间:
2014-05-26 05:23:47
阅读次数:
221
最近,在修改Android4.4的原生相机Camera2,很习惯的去寻找SurfaceView,结果任凭我使用grep还是ack,都无法搜索到SurfaceView,最后还是通过代码CameraActivity-->CameraModule-->PhotoUI-->R.layout.photo_module找到,原来是使用了TextureView。不是很了解此控件,百度之,在官方API文档中找到此...
分类:
移动开发 时间:
2014-05-26 04:55:25
阅读次数:
351
第一类:属性值 true或者
falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical
垂直居中android:layout_centerInparent 相对于父元素完全居中android:layout_alignP...
分类:
移动开发 时间:
2014-05-26 02:20:40
阅读次数:
262
SurfaceView一、简述TheSurfaceViewis a special subclass
of View that offers a dedicated drawing surface within the View hierarchy. The
aim is to offer this...
分类:
其他好文 时间:
2014-05-26 02:01:50
阅读次数:
277
Android
中常用的计量单位Android有时候需要一些计量单位,比如在布局Layout文件中可能需要指定具体单位等。常用的计量单位有:px、dip(dp)、sp,以及一些不常用的pt、in、mm。下面详细介绍下这些计量单位之间的区别和联系。in:英寸(长度单位);mm:毫米(长度单位);pt:...
分类:
移动开发 时间:
2014-05-26 00:12:06
阅读次数:
355
<GridViewandroid:id="@+store/grid"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_below="@store/main_daohang"android:numColumns="3"九宫格一行显示三个android:gravity="center"九宫格居中android:verticalSpacing="5dp"垂直..
分类:
其他好文 时间:
2014-05-25 21:09:16
阅读次数:
304
第一类:属性值 true或者
falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical
垂直居中android:layout_centerInparent 相对于父元素完全居中android:layout_alignP...
分类:
移动开发 时间:
2014-05-25 19:36:14
阅读次数:
277
通常在Surfaceview作为预览视频帧的载体,有时需在上面显示提示文字。以前我弄的都好好的...
分类:
移动开发 时间:
2014-05-25 18:27:16
阅读次数:
417
SDK升级到1.5以后,当文本输入框(EditText及其子类)获得焦点后,会弹出系统自带的软键盘为了实现一些自定义的功能,就稍微研究了下*
当layout中有多个EditText,把每个控件的android:singleLine的属性都被设置成true的情况下,软键盘的Enter键上的文字会变成“...
分类:
移动开发 时间:
2014-05-25 15:26:05
阅读次数:
222
显示图片和文字MainActivity.javapackagecom.example.android_textview_showqqface;
importjava.lang.reflect.Field;
importandroid.os.Bundle;
importandroid.app.Activity;
importandroid.graphics.Color;
importandroid.graphics.drawable.Drawable;
importandroid.text.H..
分类:
移动开发 时间:
2014-05-24 16:41:39
阅读次数:
486