![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
灵光一现:造轮子
jichun_ma
这个作者很懒,什么都没留下…
展开
-
获取Listview所有Item高度总和
调用方法后通过LayoutParam方式对ListView高度进行设置。 //获取Listview所有Item高度总和 public int getAllItemListViewHeight(ListView listView){ ArrayAdapter adapter = (ArrayAdapter) listView.getAdapter(); i原创 2016-05-11 14:04:02 · 3158 阅读 · 1 评论 -
自定义View属性的使用
自定义View属性的使用 创建 /res/values/attrs.xml 内容如下: <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="ClickTransparentButton"> <attr name="isNight" format="boolean"/>原创 2016-05-15 15:07:41 · 298 阅读 · 0 评论