-
android uvcCamera
【实例简介】usb camera的连接使用
- 2021-07-17 00:32:04下载
- 积分:1
-
android 天气预报示例源码下载(一个简易的天气预报)
android 天气预报示例源码下载(一个简易的天气预报)
- 2014-04-15下载
- 积分:1
-
android 自定义软键盘 例子源码下载
android 自定义软键盘 例子源码下载
- 2015-04-20下载
- 积分:1
-
android中不错的ExpandableListView实例效果源码
一、ExpandableListView介绍 一个垂直滚动的显示两个级别(Child,Group)列表项的视图,列表项来自ExpandableListAdapter 。组可以单独展开。 1.重要方法 expandGroup(int groupPos) :在分组列表视图中展开一组, setSelectedGroup(int groupPosition) :设置选择指定的组。 setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) :设置选择指定的子项。 getPackedPositionGroup(long packedPosition) :返回所选择的组 getPackedPositionForChild(int groupPosition, int childPosition) :返回所选择的子项 getPackedPositionType(long packedPosition) :返回所选择项的类型(Child,Group) isGroupExpanded(int groupPosition) :判断此组是否展开 2.代码:ExpandableListContextMenuInfo menuInfo=(ExpandableListContextMenuInfo)item.getMenuInfo();String title=((TextView)menuInfo.targetView).getText().toString();int type=ExpandableListView.getPackedPositionType(menuInfo.packedPosition);if (type==ExpandableListView.PACKED_POSITION_TYPE_CHILD) {int groupPos =ExpandableListView.getPackedPositionGroup(menuInfo.packedPosition);int childPos =ExpandableListView.getPackedPositionChild(menuInfo.packedPosition);二、ExpandableListAdapter 一个接口,将基础数据链接到一个ExpandableListView。此接口的实施将提供访问Child的数据(由组分类),并实例化的Child和Group。 getChildId(int groupPosition, int childPosition) 获取与在给定组给予孩子相关的数据。 getChildrenCount(int groupPosition) 返回在指定Group的Child数目。
- 2013-03-07下载
- 积分:1
-
android 高仿易信 源码下载
android 高仿易信 源码下载
- 2014-05-12下载
- 积分:1
-
android图片上传的demo 源码(含服务器端和客户端源码)
android图片上传的demo 源码(含服务器端和客户端源码)
- 2014-09-18下载
- 积分:1
-
微博安卓源码下载(社交分享)
口袋微博
- 2014-12-14下载
- 积分:1
-
android 热键插拔例子源码
Android的热插拔监听源代码,可以用来监听耳机之类的热插拔事件发生
- 2014-09-25下载
- 积分:1
-
远程视频监控
【核心代码】 public interface CameraSource { static final String LOG_TAG = "camera"; /** * Open the camera source for subsequent use via calls to capture(). * * @return true if the camera source was successfully opened. */ boolean open(); /** * Close the camera source. Calling close on a closed CameraSource is * permitted but has no effect. The camera source may be reopened after * being closed. */ void close(); /** * The width of the captured image. * * @return the width of the capture in pixels */ int getWidth(); /** * The height of the captured image. * * @return the height of the capture in pixels */ int getHeight(); /** * Attempts to render the current camera view onto the supplied canvas. * The capture will be rendered into the rectangle (0,0,width,height). * Outstanding transformations on the canvas may alter this. * * @param canvas the canvas to which the captured pixel data will be written * @return true iff a frame was successfully written to the canvas */ boolean capture(Canvas canvas); boolean saveImage(String savePath, String fileName); }
- 2013-12-04下载
- 积分:1
-
android 猜扑克 洗牌小游戏 实例 附完整源码下载
android 猜扑克牌游戏 猜中有鼓励 供大家学习哦
- 2013-03-16下载
- 积分:1