-
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
-
interview-questions-from-shanghai
android开发工程师的面试题库,主要来自于上海地区,找工作的朋友可以看看(interview questions from shanghai)
- 2013-08-12 03:44:31下载
- 积分:1
-
RssMagDetect-master
获取WiFi RSSI值,可以选择保存到手机上,对RSSI进行分析(WiFi RSSI can be receive by mobile phone,Analysis of numerical size of RSS)
- 2018-10-01 16:59:35下载
- 积分:1
-
七彩云浏览器
一款可以看全网vip电影电视剧的软件,绝对可用,破解全网各大平台VIP。(buhuiyingwensuoyiluanxiede)
- 2020-06-19 17:40:02下载
- 积分:1
-
MyAnalogClock
一个安卓版的手机闹钟源码,有详细的步骤说明(Android version of the mobile alarm clock source
)
- 2015-06-30 19:05:34下载
- 积分:1
-
android 高仿易信 源码下载
android 高仿易信 源码下载
- 2014-05-12下载
- 积分:1
-
andbook
This document was written for developers who have worked with Java™ before and want to start developing for the Android Platform. I tried to make this as much “hands on” as possible, placing example codes everywhere it fit. Also I tried to insert as many picture as possible, because they liven up the learning process and relax the reader’s eyes.
- 2011-12-01 15:09:27下载
- 积分:1
-
Chat-Socket-Demo
一个android端与Java后台通过socket进行传输的代码。(A Java back end android transmitted through the socket code.)
- 2015-10-12 20:39:20下载
- 积分:1
-
快速傅里叶变换FFT的C程序代码实现
快速傅里叶变换(Fast Fourier Transform)是离散傅里叶变换的一种快速算法,简称FFT,通过FFT可以将一个信号从时域变换到频域。 模拟信号经过A/D转换变为数字信号的过程称为采样。为保证采样后信号的频谱形状不失真,采样频率必须大于信号中最高频率成分的2倍,这称之为采样定理。 假设采样频率为fs,采样点数为N,那么FFT结果就是一个N点的复数,每一个点就对应着一个频率点,某一点n(n从1开始)表示的频率为:fn=(n-1)*fs/N。 举例说明:用1kHz的采样频率采样128点,则FFT结果的128个数据即对应的频率点分别是0,1k/128,2k/128,3k/128,…,127k/128 Hz。 这个频率点的幅值为:该点复数的模值除以N/2(n=1时是直流分量,其幅值是该点的模值除以N)。
- 2019-08-08下载
- 积分:1
-
LinkGame
说明: 能实现电脑端双人连连看游戏,里面已设置好关卡,只有在规定时间内通过游戏关卡才能进入下一关,否则游戏失败,同时进行倒计时。(It can realize the double-player continuous watching game on the computer side. The game has been set up a checkpoint. Only through the game checkpoint in the prescribed time can we enter the next level, otherwise the game will fail and the countdown will be made at the same time.)
- 2019-04-03 15:34:59下载
- 积分:1