文章分类 -  tip_android

摘要: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)
摘要: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 阅读(468) 评论(0) 推荐(0)
摘要:有效在WebView中设置cookie: CookieSyncManager.createInstance(mWebView.getContext()); CookieManager cookieManager = CookieManager.getInstance(); //如果使用cookie.setCookie(DOMAIN,String.format("version=%s; domain=%s",mApp.getVersionCode,DOMAIN)) //在某些机型上getCookie会返回null c... 阅读全文
posted @ 2013-11-15 11:37 Jsaint 阅读(1704) 评论(0) 推荐(0)