以一个简单的图片浏览器实例说明新建工程后:在activit_main.xml中添加代码:<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:..
分类:
移动开发 时间:
2015-04-23 00:21:08
阅读次数:
158
左侧定宽 右侧自适应 /* 两列右侧自适应布局 */.g-bd1{margin:0 0 10px;}.g-sd1{position:relative;float:left;width:190px;ma...
分类:
其他好文 时间:
2015-04-22 23:47:29
阅读次数:
138
左侧自适应 右侧定宽 /* 两列左侧自适应布局 */.g-bd2{margin:0 0 10px;}.g-sd2{position:relative;float:right;width:230px;m...
分类:
其他好文 时间:
2015-04-22 23:34:33
阅读次数:
125
这里设置为跟屏幕一样的宽度,:看代码dlg.show(); WindowManager.LayoutParams params = dlg.getWindow().getAttributes(); params.width = this....
分类:
移动开发 时间:
2015-04-22 20:24:45
阅读次数:
193
工作流所使用的表单页面使用freemarker设计,在发起或审批流程页面将表单作为一个iframe嵌入其中,实现如下:<iframeid="doJobframe"name="doJobframe"frameborder="0"scrolling="yes"height="100%"width="100%"style="padding:0;margin-top:39px;"src="flowFormNextViewInd..
分类:
其他好文 时间:
2015-04-22 18:39:25
阅读次数:
218
》》HTML 》》css.zg_city{ width:100%; height:100%; background-color:#f8f8f8}.zg_city:after { visibility: hidden; clear: both; display: block; height: 0...
分类:
其他好文 时间:
2015-04-22 17:47:56
阅读次数:
100
需求:实现日历功能中的天数,在一个图标中显示当前日期的天数先上效果图:关键xml布局文件:<FrameLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="4dp">
<ImageView
android:id="@+id/itemImage"
android..
分类:
移动开发 时间:
2015-04-22 16:16:03
阅读次数:
219
public static void doFileDownload(String path,
HttpServletResponse response, String filename, int width, int hight)
throws Exception {
// path是指欲下载的文件的路径。
File file = new File(path);
Image img =...
分类:
其他好文 时间:
2015-04-22 13:57:26
阅读次数:
127
android:id="@+id/slidingdrawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:content="@+id/content"
android:handle="@+id/handle"
android:or...
分类:
移动开发 时间:
2015-04-22 11:38:22
阅读次数:
146
- (void)viewDidLoad { [super viewDidLoad]; tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0,self.view.bounds.size.width,self.view.boun...
分类:
其他好文 时间:
2015-04-22 11:09:55
阅读次数:
222