码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
Android 使用xml和java混合编写ui
以一个简单的图片浏览器实例说明新建工程后:在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
android开发设置dialog的高宽
这里设置为跟屏幕一样的宽度,:看代码dlg.show(); WindowManager.LayoutParams params = dlg.getWindow().getAttributes(); params.width = this....
分类:移动开发   时间:2015-04-22 20:24:45    阅读次数:193
基于struts2 拦截器ResultType为chain的Action之间数据传递 ——表单页面打开优化
工作流所使用的表单页面使用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
去除元素浮动(:after)
》》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
Android开发—利用FrameLayout实现图标中间显示文字
需求:实现日历功能中的天数,在一个图标中显示当前日期的天数先上效果图:关键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抽屉菜单SlidingDrawer 简单使用
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
UITableView的一些常用设置和代理方法
- (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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!