<?xml
version="1.0"encoding="utf-8"?>-<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"android:layout_width="match_parent"android:layout_height="match_parent">-<LinearLayoutandroid:orientati..
分类:
其他好文 时间:
2016-09-28 19:58:03
阅读次数:
163
CSS3中的Media Query(媒介查询): 设备宽高:device-width,device-height 渲染窗口的宽和高:width,height 设备的手持方向:orientation 设备的分辨率:resolution 使用方法: 外联 <link href="css/bg.css" ...
分类:
其他好文 时间:
2016-09-28 19:23:33
阅读次数:
155
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android ...
分类:
其他好文 时间:
2016-09-23 18:15:42
阅读次数:
187
+ (UIImage *)fixOrientation:(UIImage *)aImage { // No-op if the orientation is already correct if (aImage.imageOrientation == UIImageOrientationUp) re ...
分类:
其他好文 时间:
2016-09-21 19:56:05
阅读次数:
126
quick cocos2d新建项目,在xcode中 起模拟器,默认的是竖屏,我想做一个横屏的游戏,前面已经说了 选中你的项目,在General这个标签内,Deoployment info的这个分组,有一个Device Orientation 标签,内有一个Portrait的选项,选中是竖屏,取消选中 ...
分类:
其他好文 时间:
2016-09-21 17:30:57
阅读次数:
159
摘要 layout_weight 的含义及使用 在Android的控件布局中,有一个奇葩的 layout_weight 属性,定义如下: layout_weight : 用于指定剩余空闲空间的分割比例。用法: <LinearLayout android:orientation="horizontal ...
分类:
其他好文 时间:
2016-09-16 12:44:19
阅读次数:
126
android分5大布局 1:线性布局 LinearLayout是线性布局控件,它包含的子控件以横向或者纵向的方式排列。 线性排布LinearLayout常用属性 android:orientation="vertical" 决定子类控件的排布方式 android:gravity="center 决 ...
分类:
移动开发 时间:
2016-09-14 09:33:23
阅读次数:
188
前不久,做了一个H5项目,需要在横竖屏变化时,做一些处理。毫无疑问,需要使用orientationchange来监听横竖屏的变化。 方案一: 代码添加上后,就各种兼容性问题。这里兼容性问题出现在两个地方: orientationchange event.orientation|screen.orie ...
分类:
其他好文 时间:
2016-09-12 23:55:05
阅读次数:
172
前不久,做了一个H5项目,需要在横竖屏变化时,做一些处理。毫无疑问,需要使用orientationchange来监听横竖屏的变化。 方案一: 代码添加上后,就各种兼容性问题。这里兼容性问题出现在两个地方: orientationchange event.orientation|screen.orie ...
分类:
其他好文 时间:
2016-09-12 23:50:46
阅读次数:
265
layout文件代码: 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation= ...
分类:
其他好文 时间:
2016-09-07 12:45:06
阅读次数:
151