摘要: Using Immersive Full-Screen Modeandroid 4.4(Api level 19) introduceview.setSystemUiVisibility() SYSTEM_UI_FLAG_IMMERSIVE combine with SYSTEM_UI_FLAG_HIDE_NAVIGATION and SYSTEM_UI_FLAG_FULLSCREENreveal the system bars with an inward swipe along the region where the system bars normally appear(clean h 阅读全文
posted @ 2013-12-05 22:07 Jsaint 阅读(521) 评论(0) 推荐(0)
摘要: 原文地址:http://developer.android.com/guide/components/fragments.htmlFragmentsfragments 代表一种在activity用户界面的一种行为或者一个部分。你可以结合多个fragments在同一个activity去构建一个multi-pane 界面或者二次使用一个fragment在多个activity中。你可以将fragment作为一个activity模块化区域,这个区域有自己的生命周期,接受自身输入的事件以及你可以在activity运行时添加与删除fragment(某种程度上像是子activity,你也可以二次使用在不同的 阅读全文
posted @ 2013-12-05 22:04 Jsaint 阅读(445) 评论(0) 推荐(0)
摘要: android 4.4 中 dialog 顶部会背遮挡,原因是默认模式下dialog非full screen需要在onCreateView()添加以下code:getDialog().getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);http://stackoverflow.com/questions/20121711/dialog-on-android-kitkat-seems-to-be-cut/20281449#20281 阅读全文
posted @ 2013-12-02 12:15 Jsaint 阅读(295) 评论(0) 推荐(0)
摘要: Task and Back Stacka new task is created and the "main" activity for that app opens as the root activity in the stacknew activity is pushed on the top of the stackpressed back the top activity pop from stackno activity no taskHome screen make task backgroundone activity can get multiple in 阅读全文
posted @ 2013-11-28 21:00 Jsaint 阅读(214) 评论(0) 推荐(0)
摘要: 在选项中,允许文章出现在首页为什么默认不显示。。。。。 阅读全文
posted @ 2013-11-25 18:12 Jsaint 阅读(222) 评论(0) 推荐(0)
摘要: source page:http://developer.android.com/guide/components/activities.htmlActivitiesan application component that provides a screen"main" activity for launching the application for the first timeeach activity can start another activitytasks and back stackwhen stopped,release any large objec 阅读全文
posted @ 2013-11-25 18:01 Jsaint 阅读(115) 评论(0) 推荐(0)
摘要: IntentServiceIntentService is a base class for Service that handle asynchronous request on demand.Clients send requests through startService(Intent) callshandle each intent in turn(按顺序) using handlerThreadone request will be processed at a timeDemo (这篇文章也值得一读) 阅读全文
posted @ 2013-11-25 15:41 Jsaint 阅读(83) 评论(0) 推荐(0)
摘要: source page: http://blog.csdn.net/hitlion2008/article/details/6574062Without any doubts, Android SDK has a poor documentations. There are pitfalls and traps about APIs without any mentions in SDK documentations.1. WebView.clearHistory()When there is only one item in WebView’s internal back/forward l 阅读全文
posted @ 2013-11-21 10:26 Jsaint 阅读(467) 评论(0) 推荐(0)
摘要: Fragmentsource page:http://blog.csdn.net/flowingflying/article/details/12505453为了pad引入在同一个平面上处理更多的内容子activity,提供ui与代码的重用fragment stack back按钮回退*xml 元素中不能添加子view或者是lifeCycleonInflate() 没有与activity关联,一般处理一些fragment的属性或是参数,实际编程使用少(savedInstanceState)onAttach() 关联activity时调用onCreate() fragment初始化,建议在此处可 阅读全文
posted @ 2013-11-21 10:23 Jsaint 阅读(225) 评论(0) 推荐(0)
摘要: origin article:http://developer.android.com/guide/topics/graphics/2d-graphics.htmltranslation:http://www.cnblogs.com/jsaint/articles/3427728.htmlDraw stylebind layout viewcanvans drawOn the Viewdo draw in View onDraw() functioninvalidate() request system call onDrawpostInvalidate() not in Ui threadO 阅读全文
posted @ 2013-11-17 17:01 Jsaint 阅读(170) 评论(0) 推荐(0)