摘要:
修改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.... 阅读全文
摘要:
/** * 设置图文按钮 * @param drawable 图片drawable * @param button 按钮 * @param str 显示文字 */ public static void setImageButton(int drawable, final Button button, String str){ ... 阅读全文
摘要:
添加style: AndroidManifest.xml: 引用自 阅读全文
java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widg
摘要:
有时候需要在在代码中设置LayoutParams,自己为一个FrameLayout设置LayoutParams的时候,遇上如题问题:java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParamsFrameLayout的父控件是一个LinearLayout控件,问题出在,LinearLayout为子控件分配空间的时候,获取FrameLayout的LayoutParams的必须为LinearLayout.L 阅读全文