码迷,mamicode.com
首页 >  
搜索关键字:orientation    ( 691个结果
Android简单计时器
[java] view plaincopyprint? <?xml?version="1.0"?encoding="utf-8"?> <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=?...
分类:移动开发   时间:2014-09-10 18:01:31    阅读次数:249
Android自定义对话框
首先需要一个Layout界面: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="ver...
分类:移动开发   时间:2014-09-10 17:50:10    阅读次数:197
防止横竖屏时,iphone自动缩放的一段js代码
function orientation_change() { var viewport = document.querySelector('meta[name="viewport"]'); if (window.orientation == 0 || window.orientation ==.....
分类:Web程序   时间:2014-09-05 15:44:01    阅读次数:168
Activity在设置横屏时候会调两次onCreate
有些情况需要设置Activity的横竖屏,可是跟踪下会发现onCreate两次,这个不是bug,Android本身就这种机制。     解决方法,mainfest里加android:configChanges="orientation|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation" 。     最关键的是sma...
分类:其他好文   时间:2014-09-04 11:49:09    阅读次数:167
2.2UI组件(一)布局管理器
所有的布局管理器都是ViewGroup的子类。2.2.1线性布局LinearLayout android:orientation:可以控制竖排显示(vertical)或者横排显示(horizontal) LInearLayout不会自动换行,一旦屏幕排满之后后面的控件将看不到 基本上很多布...
分类:其他好文   时间:2014-09-03 22:27:07    阅读次数:493
css3媒体查询判断移动设备横竖屏
/* 设备竖屏时调用该段css代码 */ @media all and (orientation : portrait){ body{ background-color:blue; } } /* 设备横屏时调用该段css代码 */ @media all and (orientation : la.....
分类:移动开发   时间:2014-08-21 18:34:54    阅读次数:345
(Android review) 任务栈与启动模式
这一个知识点主要以理解为主:一、任务栈(task stack)1、作用:就是用来管理activity的进入,退出。记录了用户的行为。2、举例:假如要进行一下操作:这时候,任务栈中的activity的情况如下:二、启动模式1、配置:for example:           XXXX            android:configChanges="orientation|keyboardHid...
分类:移动开发   时间:2014-08-21 17:09:54    阅读次数:214
嵌套错误Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed
例子:@{Html.Telerik().Splitter().Name("MainSplitter") .Orientation(SplitterOrientation.Vertical) .Panes(vPanes => { vPanes.Add() ...
分类:其他好文   时间:2014-08-21 11:13:03    阅读次数:171
(转)安卓基本页面布局
布局:在 android 中我们常用的布局方式有这么几种:1.LinearLayout ( 线性布局 ) :(里面只可以有一个控件,并且不能设计这个控件的位置,控件会放到左上角)线性布局分为水平线性和垂直线性二者的属性分别为: android:orientation= "horizontal and...
分类:移动开发   时间:2014-08-17 11:39:42    阅读次数:306
Android获取全部联系人信息的例子
先定义一个显示条目的xml布局文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation=...
分类:移动开发   时间:2014-08-12 17:10:44    阅读次数:221
691条   上一页 1 ... 63 64 65 66 67 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!