摘要: 阅读 http://developer.android.com/training/best-ux.html关于怎么使用swipe views。首先要有个布局:这里有两种类可以继承实现pagerview。FragmentPagerAdapterThis is best when navigating between sibling screens representing a fixed, small number of pages.FragmentStatePagerAdapterThis is best for paging across a collection of objects fo 阅读全文
posted @ 2013-11-09 22:22 yutoulck 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/training/scheduling/index.html让屏幕常亮:public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); getWindow().addFlags(WindowManager.La... 阅读全文
posted @ 2013-11-09 11:16 yutoulck 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/training/load-data-background/index.html我真的发现官方提供了好多异步操作的东西,例如这个教程里面的CursorLoader。它的特点就是,数据改变的时候,能够自动更新吧,不过你也要自己继承接口并且重写初始化、读取结束、读取刷新等方法,没什么好讲的,官方的例子很清晰可以自己去看。 阅读全文
posted @ 2013-11-09 11:00 yutoulck 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/training/run-background-service/index.htmlThe IntentService class provides a straightforward structure for running an operation on a single background thread. This allows it to handle long-running operations without affecting your user interface's responsiveness. 阅读全文
posted @ 2013-11-09 10:45 yutoulck 阅读(271) 评论(0) 推荐(0) 编辑