码迷,mamicode.com
首页 >  
搜索关键字:orientation    ( 691个结果
手机方位传感器的使用经历
当今的智能手机已经集成了众多的传感器设备,比如温度传感器、气压传感器、光线传感器等。在实际使用过程中,每个传感器都有自己的作用。今天聊聊关于方位传感器的使用。 方位传感器即Orientation Sensor。它的数据是利用加速度计和地磁场传感器计算得到的。在网上能够查到的关于方位传感器的解释为: 方位传感器由x、y、z三轴坐标表示。 三轴坐标返回的都是角度值。以度为单位。 第一个角度...
分类:移动开发   时间:2015-05-26 14:22:51    阅读次数:197
安卓方向传感器Sensor.TYPE_ORIENTATION废弃之后获得方向信息
安卓方向传感器Sensor.TYPE_ORIENTATION已经在安卓中不推荐使用了,用getOrientation来代替,用这个却不像以前那样一下就可以拿到数据,需要同时使用地磁传感器和加速度传感器来获取,代码如下:package com.catcher.testcompass;import an...
分类:移动开发   时间:2015-05-25 16:27:48    阅读次数:861
最简单的左右滑动item实现不同效果
一、效果二、item布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_wid...
分类:其他好文   时间:2015-05-24 20:26:15    阅读次数:141
TextWatcher实现一键清空EditText
布局文件main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="ver...
分类:其他好文   时间:2015-05-24 17:27:42    阅读次数:135
Android布局
1、对于这个案例来说:<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"android:weightSum="..
分类:移动开发   时间:2015-05-23 06:40:43    阅读次数:187
修复 XE8 FMX TGridLayout 容器自动计算宽度及高度的问题
说明:TGridLayout 提供计算容器内控件等分的功能:横式(Orientation=Horizontal)可将 ItemWidth = -1(小于0则自动等分)直式(Orientation=Vertical)可将 ItemHeight = -1(小于0则自动等分)问题:当 TGridLayou...
分类:其他好文   时间:2015-05-22 16:54:48    阅读次数:139
Android实战--解析稍复杂JSON数据DEMO
废话不多说,直接上代码,布局文件: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation=...
分类:移动开发   时间:2015-05-18 10:56:22    阅读次数:149
Android实战--小DEMO(JAVA关键字学习之语音合成TTS的实现)一
接着上一节讨论的问题,本DEMO中会用到TTS语音合成,我们下面介绍一个同样原理的小例子 看一下布局文件很简单:   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill...
分类:移动开发   时间:2015-05-18 09:09:11    阅读次数:212
SIFT特征提取分析
SIFT(Scale-invariant feature transform)是一种检測局部特征的算法,该算法通过求一幅图中的特征点(interest points,or corner points)及其有关scale 和 orientation 的描写叙述子得到特征并进行图像特征点匹配,获得了良好...
分类:其他好文   时间:2015-05-15 10:27:06    阅读次数:204
使用绑定服务实现一个简单的音乐播放器
效果布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="...
分类:其他好文   时间:2015-05-13 21:56:18    阅读次数:164
691条   上一页 1 ... 44 45 46 47 48 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!