-
android 网络图片下载 示例源码
很好的下载图片的工具类,特别是结合listview一起用,废话不多说,直接上源码
- 2014-03-26下载
- 积分:1
-
Android应用源码之android 安卓画廊 照片转换器.zip
【实例简介】
- 2021-09-07 00:31:13下载
- 积分:1
-
Android应用开发实例 TrainSystemHelper 完整源码
Android应用开发实例 TrainSystemHelper
- 2013-01-10下载
- 积分:1
-
android 版本升级实例源码下载
android 版本升级实例源码下载
- 2013-10-23下载
- 积分: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 异步 执行 任务 例子 附讲解
Rules::The AsyncTask instance must be created in UI thread. .execute must be invoked on the UI thread.Never call objMyTask.onPreExecute(), objMyTask.doInBackground(), objMyTask.onProgressUpdate(), objMyTask.onPostExecute manually.The AsyncTask can be executed only once (an exception will be thrown if a second execution is attempted.)AsyncTask have Four Main Method... onPreExecute() doInBackground() onProgressUpdate() onPostExecute() onPreExecute-This method is called first when you start AsyncTask using objAsync.execute().And mostly this method is use for initializing dialog(ProgressDialog,CustomDialog) and showing. doInBackground-The main purpose of AsyncTask is accomplished by this method.Any non-UI thread process is running in this method.Such as Rss Feed Reader,Image and video Uploading and Downloading.You cant handle your View in this method.Because this method is non-UI thread.While any background process is running if you want to handle UI therea are onProgressUpdate method. after completion of process this method send result to OnPostExecute. onProgressUpdate-While backgrounding task is running ,you can handle your UI using this method .Such as status of downloading or uploading task.and this method is called from doInBackground.Using publishProgress() you can call onProgressUpdate method to update UI while process is running. onPostExecute -This method is called after the background computation finishes.The result of background process in passed in this method as parameters.And now you can dismiss progress dialog ,to indicate that background task is completed. You can cancel AsyncTask using objAsyncTask.cancel().then you just check in doInBackground, if (isCancelled()) { break; } else { //continue... } See this Image For more Clear.
- 2013-07-05下载
- 积分:1
-
android 智能提示 搜索 下拉效果 例子 有截图 附源码
android 智能提示 搜索 下拉效果 例子 有截图 附源码
- 2013-07-05下载
- 积分:1
-
android socket p2p wifi聊天
能实现文字传输、语音传输、文字传输
- 2015-04-25下载
- 积分:1
-
android 多线程实例源码下载
android 多线程实例源码下载
- 2015-05-13下载
- 积分:1
-
android viewpaper特效
android viewpaper特效
- 2015-01-30下载
- 积分:1