码迷,mamicode.com
首页 >  
搜索关键字:width    ( 32014个结果
iOS开发中常见的宏
#ifndef MacroDefinition_h #define MacroDefinition_h//-------------------获取设备大小------------------------- //NavBar高度 #define NavigationBar_HEIGHT 44 //获取屏幕 宽度、高度 #define SCREEN_WIDTH ([UIScreen mainScree...
分类:移动开发   时间:2016-05-13 03:56:45    阅读次数:201
百度地图-设置默认城市
1、问题背景     利用百度地图,展示某城市地图分布;初始化时,默认打开就是该城市2、实现源码 设置默认城市地图 body,html,#map{ width: 100%; height: 100%; overflow: hidden; margin: 0; font-size: 12px; fo...
分类:其他好文   时间:2016-05-13 02:49:32    阅读次数:160
hdu 2795 Billboard(线段树)
问题描述 At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcements are posted: n...
分类:其他好文   时间:2016-05-13 02:46:14    阅读次数:177
长方柱体 2
/* *Copyright(c)2016,烟台大学计算机与控制工程学院 *All rights reserved *文件名称:123.cpp *作 者:隋宗涛 *完成日期:2016年5月8日 *版 本 号:v1.0 * *问题描述:求3个长方柱(Bulk)的体积。数据成员包括长(length)、宽(width)、高(heigth)、体积 *输入描述:三个整...
分类:其他好文   时间:2016-05-13 02:20:26    阅读次数:140
Bootstrap学习
Bootstrap–前端框架 1.布局–栅格系统 1>容器 -container-fluid – 流体布局 -container –固定布局 width:1170px 970px 750px auto –(移动优先) 注意:最好不要让容器嵌套,同一个页面可以有不同个容器,比如头尾流动,内容固定。假如不想让容器宽度变化,可以给其加一个宽度,赋予其优先级(!importa...
分类:其他好文   时间:2016-05-13 02:02:25    阅读次数:228
layout_weight及常见属性解析
我们看一下下面的代码<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="...
分类:其他好文   时间:2016-05-12 23:53:03    阅读次数:325
2016-05-08Android之广播+服务上
##1. 广播接收者概念 BroadCastReceiver,是Android四大组件之一。必须注册。 1. 注册方式:1)静态注册2)动态注册##2. IP拨号器 有序广播activity_main.xml <EditText android:id="@+id/et_ipnum" android:layout_width="wrap_content"...
分类:移动开发   时间:2016-05-12 23:45:20    阅读次数:422
Android中添加和识别手势操作
实现思路:将手势写入GestureLibrary中,对其他手势进行匹配对比,进行识别 现在布局中加入GestureOverlayView组件 <android.gesture.GestureOverlayView android:id="@+id/add_gesture" android:layout_width="match_parent" andr...
分类:移动开发   时间:2016-05-12 23:27:02    阅读次数:170
Android实现查询数据库,把数据库内容显示到屏幕
首先,是布局文件,非常的简单,一个可以滑动的ScrollView包裹一个线性布局,线性布局里面无内容 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="...
分类:移动开发   时间:2016-05-12 23:22:08    阅读次数:348
Android使用ListView将数据显示到手机屏幕上
下面是一个LinearLayout,里面的内容超级简单,就是一个ListView <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_pa...
分类:移动开发   时间:2016-05-12 23:15:54    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!