码迷,mamicode.com
首页 >  
搜索关键字:orientation    ( 691个结果
android 强制设置横屏 判断是横屏还是竖屏
判断activity 是横屏还是竖屏方法 1: //根据设备配置信息Configuration cf= this.getResources().getConfiguration(); //获取设置的配置信息int ori = cf.orientation ; //获取屏幕方向if(ori == cf...
分类:移动开发   时间:2015-03-06 18:46:49    阅读次数:172
Android--快速地搜索手机文件引擎小程序(File I/O)
main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertica...
分类:移动开发   时间:2015-03-06 11:23:31    阅读次数:201
Android--OnKeyListner
main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertica...
分类:移动开发   时间:2015-03-05 19:37:04    阅读次数:147
使用popupwindow设计出popupmenu效果的菜单
1、popupwindow的布局文件:menu_layout.xml                 android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >             android:id="@...
分类:Windows程序   时间:2015-03-05 17:06:56    阅读次数:184
Android--页面跳转
1.页面一main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="ve...
分类:移动开发   时间:2015-03-04 22:49:46    阅读次数:204
No orientation specified, and the default is horizontal.
出现下边的问题解决方法: 整的错误提示信息为:No orientation specified, and the default is horizontal. This is a common source of bugs when  children are added dynamically. 通常发生这个错误提示的原因是我们直接在原有的页面上...
分类:其他好文   时间:2015-03-04 17:05:34    阅读次数:130
Android学习——HorizontalScollview水平滚动控件
HorizatalScollView控件只是支持水平滚动,而且它只能包含一个控件,通常是在<HorizatalScollView>标签中定义一个<LinearLayout>标签并且在<LinearLayout>标签中android:orientation属性值设置为horization.然后在<LinearLayout>标签中放置多个控件,..
分类:移动开发   时间:2015-03-04 06:25:50    阅读次数:220
android小功能实现之文件读写
新建一个Android工程。 一 布局 先看效果图: 打开main.xml修改内容如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_par...
分类:移动开发   时间:2015-03-03 20:42:33    阅读次数:219
建一个简单的用户界面
Create a Linear Layout(创建一个线性布局)注释:android:orientation="vertical"水平线性布局,"horizontal"垂直水平线性 match_parent:This value declares that the view should expan...
分类:其他好文   时间:2015-03-03 20:11:56    阅读次数:131
Android倒计时
感谢极客学院的视频布局文件:<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" and..
分类:移动开发   时间:2015-03-02 19:16:05    阅读次数:209
691条   上一页 1 ... 49 50 51 52 53 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!