本文主要是介绍pullToRefreshListView去掉分割线方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
如上图用的是pullToRefreshListView 每个item之间有一条线,样式比较尴尬 ,需要去掉,去掉后的效果是这样的
去掉前代码:
<com.jky.mobilebzt.pulltorefresh.PullToRefreshListViewandroid:id="@+id/plv_q_and_s"android:layout_width="match_parent"android:layout_height="match_parent"android:layout_above="@id/tv_enter_user_fb"android:background="@color/color_efefef"android:dividerHeight="3dp"android:headerDividersEnabled="false"android:footerDividersEnabled="false"android:paddingLeft="@dimen/padding_lllsmall"android:paddingRight="@dimen/padding_lllsmall" />
去掉后代码:
<com.jky.mobilebzt.pulltorefresh.PullToRefreshListViewandroid:id="@+id/plv_q_and_s"android:layout_width="match_parent"android:layout_height="match_parent"android:layout_above="@id/tv_enter_user_fb"android:background="@color/color_efefef"android:divider="#00000000"android:dividerHeight="3dp"android:headerDividersEnabled="false"android:footerDividersEnabled="false"android:paddingLeft="@dimen/padding_lllsmall"android:paddingRight="@dimen/padding_lllsmall" />
就是加上了一句: android:divider="#00000000" 设置成透明 我试了隐藏将高度设置为0( android:dividerHeight="0dp")是没用的 ,加上这个就可以了。
希望对大家有所帮助。欢迎各位小伙伴加入我的qq群:开发一群:454430053 (付费)开发二群:537532956 (付费)开发三群:812695329(免费)这里已经有很多小伙伴在等你了,快来加入我们吧!
这篇关于pullToRefreshListView去掉分割线方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!