什么是 UGUI
UGUI 是 Unity 自带的一套 GUI 系统,含有基本的一些 UI 控件。
UGUI 控件有哪些?
我们常用的有 Canvas,Text,Image,Button,Toggle,Slider,Scroll Bar,Scroll View,Input Field。
怎样新建 UI 控件
在 Hierarchy 中右键添加
在菜单栏的 Component 中添加Can...
分类:
其他好文 时间:
2016-05-06 15:07:55
阅读次数:
367
ion-header-bar(头部 页眉) 在内容顶部添加一个固定header栏。 用法 <ion-header-bar align-title="left" class="bar-positive"> <div class="buttons"> <button class="button" ng- ...
分类:
其他好文 时间:
2016-05-06 12:01:40
阅读次数:
917
在应用开发中,有时我们需要用代码计算布局的高度,可能需要减去状态栏(status bar)的高度。状态栏高度定义在Android系统尺寸资源中status_bar_height,但这并不是公开可直接使用的,例如像通常使用系统资源那样android.R.dimen.status_bar_height。 ...
分类:
其他好文 时间:
2016-05-03 00:22:01
阅读次数:
165
开源项目分析BottomBar
今天分析一个炫酷的底部菜单栏开源项目,先说明下用法,再分析一下源码的实现。
GitHub地址
https://github.com/roughike/BottomBar
先上个效果图
使用添加依赖compile 'com.roughike:bottom-bar:1.3.3'创建menu资源文件res/menu/bottombar_menu.xml:<men...
分类:
其他好文 时间:
2016-04-30 06:38:34
阅读次数:
961
getParameter 方法获取的是表单或 URL 的请求参数。参数是从 Web 客户端传递至 Web 服务端。例如有如下的 servlet: 当接收 /hello?foo=a&bar=b 请求时,容器便将 foo 和 bar 这两个参数通过 HttpServletRequest 传递至 doGe ...
分类:
Web程序 时间:
2016-04-30 00:59:35
阅读次数:
333
1.在info.plist中添加View controller-based status bar appearance,值为NO 2.在设置状态栏的地方添加代码 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyle ...
分类:
其他好文 时间:
2016-04-29 11:49:48
阅读次数:
198
1. 软件启动瞬间即弹出启动图的时候隐藏状态栏的方法 修改<YOUR_APP>-Info.plist,在Xcode中修改,在根结点Iinfo下面新加一项“Status bar is initially hidden”(不用手动输入,可以直接在下拉菜单中选取)。这是个BOOL类型的键值,选择YES即可 ...
分类:
移动开发 时间:
2016-04-29 11:49:39
阅读次数:
259
Trapping Rain Water Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to ...
分类:
其他好文 时间:
2016-04-29 07:05:30
阅读次数:
118
CR0:hasacontrolflagPG,If1,enablepagingandusetheCR3register,elsedisablepagingCR2:storetheaddresstheprogramattemptedtoaccess.CR3:usedtostoretheaddressofthetop-levelstructure,enabletheprocessortotranslatelinearaddressintophysicaladdressesbylocatingthepagedirec..
分类:
移动开发 时间:
2016-04-28 12:36:48
阅读次数:
349
默认状态栏为黑色,对于某些App不是很美观,变成白色很简单,只需要两个步骤。 1.在Info.plist中添加新项目,View controller-based status bar appearance,Boolean值为No. 2.在AppDelegate的- (BOOL)application ...
分类:
移动开发 时间:
2016-04-25 13:21:10
阅读次数:
181