
Android
文章平均质量分 91
linjf2009
这个作者很懒,什么都没留下…
展开
-
Android版DailyInsist(五)——业务逻辑和数据操作SettingFragment & 小结
最后一部分是提醒以及每天任务刷新,两者都用到了AlarmManager这个系统管理类。提醒提醒功能就是一个闹钟的效果,只是这里是启动服务,在服务里发一条notification作为提醒。设置时间时,TimePicker控件会监听该事件,每次时间改变后都会重新设置系统闹钟;如果用户关闭提醒功能的话,这个系统闹钟设置的事件也会取消。修改后的SettingFragment如下:@EFra原创 2014-01-22 14:01:53 · 1662 阅读 · 3 评论 -
AndroidAnnotations——SharedPreferencesHelpers
SharedPreferencesHelpersSince AndroidAnnotations 2.1SharedPreferences helpers allow you to use Android SharedPreferences, but in a typesafe manner, instead of using strings.Sha翻译 2013-12-17 09:49:14 · 2655 阅读 · 4 评论 -
AndroidAnnotations——Annotation recipes 注解使用方法
Annotation recipes 注解使用方法Enhanced components 优化的组件How to enhance ActivitiesHow to enhance FragmentsHow to enhance custom classesHow to enhance custom viewsHow to enhance your Application cla翻译 2013-12-04 15:29:01 · 2517 阅读 · 0 评论 -
AndroidAnnotations——BackgroundTasksAndActivityBinding后台任务和activity绑定
BackgroundTasksAndActivityBindingSince AndroidAnnotations 2.5Like an AsyncTask, @Background does not handle any lifecycle changes on your activities.和AsyncTask类似, @Background 不会处理任翻译 2013-12-16 14:03:29 · 1241 阅读 · 0 评论 -
AndroidAnnotations——Publish progress显示进度
Publish progressSince AndroidAnnotations 1.0Publish progress made easyIt's actually quite easy to deal with progress reports when you let AndroidAnnotations handle thread related翻译 2013-12-16 13:23:27 · 1602 阅读 · 0 评论 -
AndroidAnnotations——TextChangeEvents文本改变事件
TextChangeEventsSince AndroidAnnotations 2.6@TextChangeThis annotation is intended to be used on methods to receive events defined byandroid.text.TextWatcher.onTextChanged(翻译 2013-12-16 09:17:57 · 1994 阅读 · 0 评论 -
AndroidAnnotations——OnActivityResult
OnActivityResultSince AndroidAnnotations 2.7This annotation is intended to be used on methods to receive results from an activity started withandroid.app.Activity.startActivityForRes翻译 2013-12-16 15:34:56 · 1760 阅读 · 0 评论 -
AndroidAnnotations——Fork join
Fork joinSince AndroidAnnotations 1.0Fork / Join for the poor Android devLet's say you want to split a background operation into two separate operations that run concurrently, an翻译 2013-12-16 13:16:12 · 991 阅读 · 0 评论 -
AndroidAnnotations——WorkingWithThreads线程操作
WorkingWithThreads04/03/2013 The 2.7.1 release is outUsing AndroidAnnotationsGet started!DownloadCookbook, full of recipesList of all available annotationsRelease NotesExamples翻译 2013-12-16 11:21:37 · 1631 阅读 · 0 评论 -
ReleaseNotes 3.1 & 3.2
ReleaseNotesWonderCsabo edited this page on 13 Oct · 124 revisions Pages 9909/11/2014 The 3.2 release is out !Using AndroidAnnotationsGet started!DownloadCookbook转载 2014-11-21 15:22:05 · 801 阅读 · 0 评论 -
解决Android Studio 编译缓慢和中文编码问题
网上找的方法,试了一下快了很多,记下来做参考开启gradle单独的守护进程在下面的目录下面创建gradle.properties文件:/home//.gradle/ (Linux)/Users//.gradle/ (Mac)C:\Users\\.gradle (Windows)并在文件中增加:org.gradle.daemon=true修改a转载 2015-06-24 16:48:09 · 883 阅读 · 0 评论 -
Android版DailyInsist(二)——滑动界面
滑动界面结合了FragmentActivity和开源项目 Android-ViewPagerIndicator 进行实现。项目本身需要添加开源项目的library作为库文件使用。主Activity——DailyInsistActivity相关代码如下:package com.kiyonlin.dailyinsist;import java.util.ArrayList;impor原创 2014-01-14 16:11:20 · 1489 阅读 · 0 评论 -
Android版DailyInsist(三)——业务逻辑和数据操作MainFragment
业务逻辑主要在主界面MainFragment进行,流程图(非完整)如下:抽象出一个对象——任务Task,创建TaskBean类:package com.kiyonlin.bean;import android.annotation.SuppressLint;import java.text.SimpleDateFormat;import java.util.Ca原创 2014-01-15 15:47:25 · 1490 阅读 · 0 评论 -
Android版DailyInsist(四)——业务逻辑和数据操作RecordFragment
统计界面RecordFragment中的业务逻辑涉及到三个方面:新建任务,每日签到和删除任务。有上面三个中的任何一个操作时,统计界面都要做出相应的更新。其中删除操作在统计界面中进行。这里参考了文章中实现自定义ListView的形式。TaskBean类在上一篇文章中已经介绍过了,下面定义一个接口ITaskFinder:public interface ITaskFinder {原创 2014-01-20 11:38:19 · 1239 阅读 · 0 评论 -
Android版DailyInsist(一)——简介
软件简介Daily Insist 是IOS上的一款习惯养成软件。软件界面采用扁平化设计,看上去清新简洁。它的作用就是让你每天坚持做事后签到,最终养成习惯、稳定习惯。假如一天没有签到,那么当前任务就失败了。目前Android上没有这款软件,所以打算简单移植一下,功能方面会略有差异。但是主要目的是结合实现这个小软件熟悉巩固之前学习的AndroidAnnotations开源项目。界面原创 2014-01-14 11:26:50 · 1361 阅读 · 0 评论 -
Android Studio1.2 安装总结
最近可能又要开始接触android了,去了解了一下,更新换代还是挺快的AndroidAnnotations更新到3.3.1版本了,也去看了一下Android Studio(1.2版本的下站地址,需翻墙)下了那个IDE+SDK版本的,但是安装之后还是会去检查SDK版本安装的时候遇到了一些问题:Intel HAXM安装失败,原因是BIOS里没有开启Intel Virt原创 2015-06-05 16:40:43 · 741 阅读 · 0 评论 -
Androidannotations——开源框架简介&简易使用准备
Androidannotations是一个Github上的开源框架,使用java注解(依赖注入)的方式,意图使Android开发代码更简洁。下载地址:https://github.com/excilys/androidannotations/wiki/Download。目前最高版本为2.7.1。包里有两个jar文件,androidannotations-2.7.1.jar是用来提供原创 2013-12-04 14:57:09 · 2193 阅读 · 1 评论 -
ReleaseNotes 3.3.1
ReleaseNotesCsaba Kozák edited this page 26 days ago · 132 revisions Pages 899/05/2015 The 3.3.1 release is out !Using AndroidAnnotationsGet started!DownloadCookb转载 2015-06-04 14:09:38 · 898 阅读 · 0 评论 -
AndroidAnnotations——Enhance Fragments 优化Fragments
Enhance Fragments 优化FragmentsSupport for FragmentActivity 对FragmentActivity的支持Since AndroidAnnotations 2.1Prior to AndroidAnnotations 2.6, there was no support for fragment翻译 2013-12-04 15:55:43 · 3982 阅读 · 6 评论 -
AndroidAnnotations——Handling options menu处理选项菜单
Handling options menuSince AndroidAnnotations 2.2You can easily add options menu support in your activities, with the @OptionsMenu and@OptionsItem annotations.你可以使用 @Option翻译 2013-12-16 10:58:47 · 1363 阅读 · 0 评论 -
AndroidAnnotations——Injecting FragmentArg注入Fragment参数
FragmentArgSince AndroidAnnotations 2.7@FragmentArgThe @FragmentArg annotation indicates that a fragment field should be injected with the corresponding Fragment Argument翻译 2013-12-06 08:56:30 · 2873 阅读 · 0 评论 -
AndroidAnnotations——ClickEvents单击事件
ClickEvents04/03/2013 The 2.7.1 release is outUsing AndroidAnnotationsGet started!DownloadCookbook, full of recipesList of all available annotationsRelease NotesExamplesQuestio翻译 2013-12-07 20:05:28 · 1970 阅读 · 0 评论 -
AndroidAnnotations——Enhance services优化服务
Enhance services 优化servicesSince AndroidAnnotations 2.4You can enhance an Android Service with the @EService annotation:你可以使用 @EService 优化一个Android Service:@EServicepu翻译 2013-12-04 16:55:55 · 1121 阅读 · 0 评论 -
AndroidAnnotations——Enhance broadcastreceivers优化广播接收器
Enhance broadcastreceivers优化广播接收器Since AndroidAnnotations 2.4You can enhance an Android BroadcastReceiver with the @EReceiver annotation:你可以使用@EReceiver 优化一个Android广播接收器:翻译 2013-12-04 16:57:37 · 1104 阅读 · 0 评论 -
AndroidAnnotations——How It Works,AndroidAnnotation是如何工作的
How It WorksOverview 概述AndroidAnnotations works in a very simple way. It automatically adds an extra compilation step that generates source code, using the standard Java Annotation P翻译 2013-12-04 15:22:05 · 1709 阅读 · 0 评论 -
AndroidAnnotations——Injecting project Resources注入项目资源
ResourcesSince AndroidAnnotations 1.0All @XXXRes annotations indicate that an activity field should be injected with the correspondingAndroid resource from your res folder. The r翻译 2013-12-04 20:11:28 · 1122 阅读 · 0 评论 -
AndroidAnnotations——Injecting Views视图注入
Injecting Views视图注入Since AndroidAnnotations 1.0@ViewByIdThe @ViewById annotation indicates that an activity field should be bound with the corresponding View component from t翻译 2013-12-04 20:09:55 · 2096 阅读 · 0 评论 -
AndroidAnnotations——Enhance contentproviders优化ContentProvider
Enhance contentproviders优化ContentProviderSince AndroidAnnotations 2.4You can enhance an Android Content Provider with the @EProvider annotation:你可以使用 @EProvider 优化Android Content翻译 2013-12-04 16:59:52 · 901 阅读 · 0 评论 -
AndroidAnnotations——Enhance activities 优化Activities
Enhance activitiesSince AndroidAnnotations 1.0@EActivityThe @EActivity annotation indicates that an activity will be enhanced by AndroidAnnotations. Its value parameter m翻译 2013-12-04 15:34:28 · 1254 阅读 · 0 评论 -
Androidannotations——Home主页,了解AndroidAnnotations
做好AndroidAnnotations的准备工作以后,就可以开始了解如何使用了AndroidAnnotations在Github上有详细的说明文档,英文好的可以直接去阅读下面文章内容都是简单翻译说明文档,不当之处,还请不吝指教。Home主页04/03/2013 The 2.7.1 release is outUsing Androi翻译 2013-12-04 15:11:00 · 1688 阅读 · 0 评论 -
AndroidAnnotations——Injecting Extras注入Extras
ExtrasSince AndroidAnnotations 1.0@ExtraThe @Extra annotation indicates that an activity field should be injected with the correspondingExtra from the Intent that was used to翻译 2013-12-04 20:12:46 · 1497 阅读 · 0 评论 -
AndroidAnnotations——Injecting html注入html文本
Injecting html注入htmlSince AndroidAnnotations 2.2If you want to inject HTML text in a TextView (may it be to format it or because you love HTML), there are two annotations that ca翻译 2013-12-04 20:16:28 · 854 阅读 · 0 评论 -
AndroidAnnotations——Adapters and lists 适配器和列表
Adapters and listsThis is just a simple demonstration of how you could handle Adapters and AdapterViews in a simple way with AndroidAnnotations.这是一个使用AndroidAnnotations处理 Adapters和 A翻译 2013-12-13 16:13:06 · 2306 阅读 · 0 评论 -
AndroidAnnotations——Listening to AdapterViewEvents监听适配器视图事件
AdapterViewEvents适配器视图事件Since AndroidAnnotations 1.0You can bind methods to handle events on items in an AdapterView:你可以绑定方法来处理适配器视图中项目的事件:Item clicks with @ItemClickLong ite翻译 2013-12-07 20:37:54 · 1356 阅读 · 0 评论 -
AndroidAnnotations——Reinject NonConfiguration Instance重新注入NonConfiguration 实例
NonConfiguration InstanceSince AndroidAnnotations 2.5When a configuration change occurs, your activities are usually destroyed and recreated. This behavior is great to reload r翻译 2013-12-04 20:39:46 · 1292 阅读 · 0 评论 -
AndroidAnnotations——Injecting SystemServices注入系统服务
SystemServicesSince AndroidAnnotations 1.0Standard Android System Service injectionRetrieving Android System Services requires remembering the name of the constant, and casti翻译 2013-12-04 20:14:52 · 1356 阅读 · 0 评论 -
AndroidAnnotations——Enhance custom views 优化自定义组件
Enhance custom views 优化自定义组件@EView and @EViewGroup are the annotations to use if you want to create custom components.假如你想创建自定义组件,你可以使用@EView和@EViewGroup注解。Why should I use custo翻译 2013-12-04 16:49:41 · 1645 阅读 · 0 评论 -
AndroidAnnotations——Enhancing the Application class优化Application类
Enhancing the Application class 优化Application类Since AndroidAnnotations 2.4You can enhance your Android Application class with the @EApplication annotation:你可以使用 @EApplication翻译 2013-12-04 16:53:49 · 1246 阅读 · 0 评论 -
AndroidAnnotations——Enhance custom classes 优化自定义类
Enhance custom classesSince AndroidAnnotations 2.4Enhancing custom classes 优化自定义类You can use annotations in a class that is not a standard Android component (such as an Act翻译 2013-12-04 16:42:30 · 1919 阅读 · 0 评论 -
AndroidAnnotations——Simple HTTPS 简单的HTTPS
不熟悉这块,所以前面的解释没怎么懂,例子倒是蛮好懂的Simple HTTPSSince AndroidAnnotations 2.6@HttpsClientThe @HttpsClient simplifies HTTPS requests by injecting a HttpClient instance with a con翻译 2013-12-05 16:25:46 · 1436 阅读 · 0 评论