-
ListView
ListView 控件可使用四种不同视图显示项目。通过此控件,可将项目组成带有或不带有列标头的列,并显示伴随的图标和文本。 可使用 ListView 控件将称作 ListItem 对象的列表条目组织成下列四种不同的视图之一:1.大(标准)图标2.小图标3.列表4.报表 View 属性决定在列表中控件使用何种视图显示项目。还可用 LabelWrap 属性控制列表中与项目关联的标签是否可换行显示。另外,还可管理列表中项目的排序方法和选定项目的外观。
- 2022-05-22 09:54:19下载
- 积分:1
-
网络下载图片01
网络下载图片01
- 2015-04-22下载
- 积分:1
-
Manning.Unlocking-Android.2008
android开发经典书籍,在京东上的书籍要卖232元(Manning.Unlocking Android.2008)
- 2012-03-27 10:13:52下载
- 积分:1
-
android 模仿微博登陆框实例源码
当文字输入时改变图片 仿微博
- 2014-08-22下载
- 积分:1
-
Android捕获全局异常并写日志保存到sd卡
Android捕获全局异常并写日志保存到sd卡,捕获异常消息后输出这个消息,可避免APP强制退出,抛出NullPointException玩玩哈,捕获全局异常是因为有的异常我们捕获不到,捕获时我们采用同步方法,以免单例多线程环境下出现异常,初始化,把当前对象设置成UncaughtExceptionHandler处理器,处理异常时我们还可以把异常信息写入文件,以供后来分析。
保存错误信息到文件中 返回文件名称,我们定义了saveCrashInfo2File(Throwable ex)方法,便于将文件传送到服务器,并保存信息到SD卡中。
- 2022-06-11 21:16:06下载
- 积分: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单任务多线程任意断点下载【源码】,包括了一个可复用的文件下载服务类用于获取实时更新每条线程已经下载的文件长度,可实现多任务下载
1.创建XML文件,将要生成的View配置好
2.获取系统服务LayoutInflater,用来生成新的View
LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
3.使用inflate(int resource, ViewGroup root)方法生成新的View
4.调用当前页面中某个容器的addView,将新创建的View添加进来
- 2022-01-26 01:52:43下载
- 积分:1
-
Android
安卓手机应用开发从入门到精通,非常好的入门学习书籍(Android mobile application development from entry to the master)
- 2013-12-16 21:07:34下载
- 积分:1
-
Android UVC Demo
应用背景在Android使用USB Camera。前提是Android里有完整的UVC驱动。插上Camera后,如果能识别到/dev/video0,基本上就能用上面的Demo进行预览。亲测可用关键技术
Android UVC
Android UVC JNI
- 2022-03-03 07:44:36下载
- 积分:1
-
andengine引擎的android RPG游戏
这个是基于andengine引擎的android游戏源代码,供学习使用。 andengine引擎是一个开源并且免费的一个2D游戏引擎,目前有很多游戏都是基于这个引擎而开发的,该引擎是基于OPENGL es2 的, 大量工作时交给native层来完成的,所以效率是可以保证的。
- 2023-09-09 23:50:04下载
- 积分:1