-
android 菜单键选择背景颜色 例子
需要将package 中的_ 去掉后 即可编译成功
- 2015-05-30下载
- 积分:1
-
安卓课程表
安卓课程表,用listview实现
- 2023-03-05 16:05:04下载
- 积分: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
-
2000多个 android设计常用图标下载
2000多个 android设计常用图标下载
- 2015-08-04下载
- 积分:1
-
Android查看通讯录+模糊搜索
Android查看通讯录+模糊搜索
- 2022-03-26 08:54:22下载
- 积分:1
-
AutoRingProjectxx_zz_src
I created this app to simulate the ring behavior of the Motorola RAZR which would switch to loud when charging and return to vibrate-only when disconnected (no manual adjustment needed). This app also allows the reverse scenario (silent when connected otherwise ring).
This tutorial assumes you already have the Eclipse environment up and running. If you are new to Eclipse and Android development, I recommend going through the temperature converter tutorial which can be found here.
- 2012-06-20 10:51:20下载
- 积分:1
-
android 图片缓存
如果每次加载同一张图片都要从网络获取,那代价实在太大了。所以同一张图片只要从网络获取一次就够了,然后在本地缓存起来,之后加载同一张图片时就从缓存中加载就可以了。从内存缓存读取图片是最快的,但是因为内存容量有限,所以最好再加上文件缓存。文件缓存空间也不是无限大的,容量越大读取效率越低,因此可以设置一个限定大小比如10M,或者限定保存时间比如一天。 因此,加载图片的流程应该是:1、先从内存缓存中获取,取到则返回,取不到则进行下一步; 2、从文件缓存中获取,取到则返回并更新到内存缓存,取不到则进行下一步; 3、从网络下载图片,并更新到内存缓存和文件缓存。
- 2022-03-02 11:58:07下载
- 积分:1
-
H264EncodeFromX264
基于安卓手机的动态采集系统压缩的H264视频,并且上传到服务器上(Andrews-based mobile phone H264 video compression dynamic acquisition system, and uploaded to the server)
- 2012-07-24 21:01:56下载
- 积分:1
-
安卓画图板
最近没什么事情,写过一个画图板的DEMO(sketchpad),发出来与大家分享。功能说明:1、能画线(Pen),能擦除(Eraser),清除(Clear)。2、Undo,Redo功能。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-04-25 00:30:04下载
- 积分:1
-
android 照片拍摄 录音等功能
android 照片拍摄 录音等功能
- 2013-10-31下载
- 积分:1