2016年10月8日

android.view.InflateException: Binary XML file line #34: Error inflating class

摘要: 问题一般出在xml的第三方View的全类名,你可能是直接粘贴过来的,没有改成自己项目的全类名。 阅读全文

posted @ 2016-10-08 21:06 libuyi 阅读(210) 评论(0) 推荐(0) 编辑

圆形背景的TextView

摘要: 【应用场景】: 【需要的xml】:shape_circle.xml <?xml version="1.0" encoding="UTF-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shap 阅读全文

posted @ 2016-10-08 14:35 libuyi 阅读(518) 评论(0) 推荐(0) 编辑

GridView嵌套在ScrollView里只有一行的问题

摘要: 遇到这个问题 网上找到的解决办法: 方法一:就是上面说的通过计算出来ListView或者GridView中的子列高度和 进行显示:public void setListViewHeightBasedOnChildren(ListView listView) { ListAdapter listAda 阅读全文

posted @ 2016-10-08 08:27 libuyi 阅读(316) 评论(0) 推荐(0) 编辑

导航