摘要: 修改https为http,在Android SDK Manager->Tools-Options...选项界面,将“Force https://… sources to be fetched using http://…”勾选! 另外需要在文件(C:\Windows\System32\drivers\etc\hosts)中,添加如下一行:203.208.46.146 dl-ssl.google.... 阅读全文
posted @ 2014-11-04 16:00 写代码的临时工 阅读(151) 评论(0) 推荐(0) 编辑
摘要: /** * 设置图文按钮 * @param drawable 图片drawable * @param button 按钮 * @param str 显示文字 */ public static void setImageButton(int drawable, final Button button, String str){ ... 阅读全文
posted @ 2014-10-19 12:37 写代码的临时工 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 添加style: AndroidManifest.xml: 引用自 阅读全文
posted @ 2014-08-25 12:12 写代码的临时工 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 有时候需要在在代码中设置LayoutParams,自己为一个FrameLayout设置LayoutParams的时候,遇上如题问题:java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParamsFrameLayout的父控件是一个LinearLayout控件,问题出在,LinearLayout为子控件分配空间的时候,获取FrameLayout的LayoutParams的必须为LinearLayout.L 阅读全文
posted @ 2014-04-03 15:24 写代码的临时工 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: android 阅读全文
posted @ 2014-04-01 18:04 写代码的临时工 阅读(109) 评论(0) 推荐(0) 编辑