#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
问题描述
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
/*
*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–前端框架
1.布局–栅格系统
1>容器
-container-fluid – 流体布局
-container –固定布局 width:1170px 970px 750px auto –(移动优先)
注意:最好不要让容器嵌套,同一个页面可以有不同个容器,比如头尾流动,内容固定。假如不想让容器宽度变化,可以给其加一个宽度,赋予其优先级(!importa...
分类:
其他好文 时间:
2016-05-13 02:02:25
阅读次数:
228
我们看一下下面的代码<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
##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
实现思路:将手势写入GestureLibrary中,对其他手势进行匹配对比,进行识别
现在布局中加入GestureOverlayView组件
<android.gesture.GestureOverlayView
android:id="@+id/add_gesture"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2016-05-12 23:27:02
阅读次数:
170
首先,是布局文件,非常的简单,一个可以滑动的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
下面是一个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