activity_main.xml <RadioGroup android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:layout ...
分类:
其他好文 时间:
2016-11-17 13:02:15
阅读次数:
205
今天遇到了两个问题: 1. 使用 python 的 PIL 库读取照片的尺寸,对于有些图片,长宽和显示的效果相反,原因是照片中的 exif 有个属性 orientation,表示图片的翻转角度,详细说明见: https://support.qiniu.com/hc/kb/article/112972 ...
分类:
其他好文 时间:
2016-11-13 01:53:26
阅读次数:
188
1、StackPanel:顾名思义 堆栈面板,通过Orientation属性设置子元素的布局排列方向为“Vertical”(垂直)和“Horizontal”(水平),不写其默认值为“Vertical”,当设置为“Vertical”时子元素会沿水平方向拉伸,反之设置为“Horizontal”时子元素会 ...
UC浏览器 1.设置屏幕横屏还是竖屏 <meta name="screen-orientation" content="portrait | landscape"> 2.设置是否全屏,yes是强制全屏 <meta name="full-screen" content="yes | no"> 3.缩放 ...
分类:
移动开发 时间:
2016-10-27 13:21:46
阅读次数:
331
一、LinearLayout线性布局(1)线性布局分为垂直和水平两个方向android:orientation="vertical"
android:orientation="horizontal"(2)定义宽和高铺满父级容器:match_parent
根据内容自适应:wrap_contentandroid:layout_width=""
android:layout_height=""(3)设置权重andr..
分类:
移动开发 时间:
2016-10-22 18:37:20
阅读次数:
241
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"tools:context=".MainActivity"><..
分类:
移动开发 时间:
2016-10-18 23:37:37
阅读次数:
230
js判断屏幕横竖屏:function orient() { //alert('gete'); if (window.orientation == 0 || window.orientation == 180) { $("body").attr("class", "portrait"); orient ...
分类:
其他好文 时间:
2016-10-10 18:58:55
阅读次数:
110
1.在项目工具窗口中,右键单击res目录后选择new--Android resource directory菜单项。 2.从资源类型Resource type列表中选择layout,保持Source Set的main选项不变。 3.选中待选资源特征列表中的Orientation,然后单击》按钮移动至 ...
分类:
移动开发 时间:
2016-10-09 19:58:53
阅读次数:
176
线性布局(LinearLayout)常用属性: android:orientation="vertical"--决定子类控件的排布方式(vertical垂直;horizontal水平) Android:garavity="center"--决定子类控件的xy的位置常用属性值: 1>center_ve ...
分类:
移动开发 时间:
2016-10-02 13:00:41
阅读次数:
267
例如我的Activity都继承了CommonActivity,就可以在CommonActivity的onCreate()方法中加入以下代码:setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
分类:
移动开发 时间:
2016-09-30 12:42:58
阅读次数:
208