Android 关于ExpandableListView去掉里头分割线的方法

关于ExpandableListView,
自己写了个类继承自BaseExpandableListAdapter
groups,childs

都弄好了,显示出来的效果跟网上很多demo一样,我现在就是想去掉那个组下面各item间的分割线

有知道的么?

------解决方案--------------------
expandableList.setDivider(null);

up,还不行就设置一个透明的颜色。

------解决方案--------------------
可以的,
android:divider="@null"

------解决方案--------------------
估计可以在getview中设置那条线

------解决方案--------------------
可以设置driverHeight="0dip"或者driver="透明的图片",这是设置第一级菜单的分割线的,二级菜单ChildDriver="0dip"

------解决方案--------------------
set diveder height = 0;

以上就是小编为大家带来的Android 关于ExpandableListView去掉里头分割线的方法全部内容了,希望大家多多支持脚本之家~

时间: 2024-07-31 03:20:27

Android 关于ExpandableListView去掉里头分割线的方法的相关文章

Android 关于ExpandableListView去掉里头分割线的方法_Android

关于ExpandableListView, 自己写了个类继承自BaseExpandableListAdapter groups,childs 都弄好了,显示出来的效果跟网上很多demo一样,我现在就是想去掉那个组下面各item间的分割线 有知道的么? ------解决方案-------------------- expandableList.setDivider(null); up,还不行就设置一个透明的颜色. ------解决方案-------------------- 可以的, androi

android studio如何去掉自己创建的方法名下面的小波浪线?

问题描述 android studio如何去掉自己创建的方法名下面的小波浪线? android studio如何去掉自己创建的方法名下面的小波浪线?怎么去掉小波浪线??看着好不舒服 解决方案 File-->Settings,在左侧面板选择Editor-->Inspections,右侧找到Spelling选项,将其后面复选框的对勾去掉,然后保存即可. 解决方案二: 因为定义了这个方法却没有用到...? 解决方案三: 在这里解决

Android 关于ExpandableListView刷新问题的解决方法_Android

正文 首先是最基础的 ExpandableListView vList = (ExpandableListView) this.findViewById(R.id.list); EListAdapter adapter = new EListAdapter(getApplicationContext(), list); //list 是数据源 vList.setAdapter(adapter); //适配器就不写了, 都懂的 class EListAdapter extends BaseExpa

Android改变ExpandableListView的indicator图标实现方法_Android

本文实例讲述了Android改变ExpandableListView的indicator图标实现方法.分享给大家供大家参考,具体如下: 1)定义xml文件先,命名为expand_list_indicator.xml <?xml version="1.0" encoding="UTF-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&

Android改变ExpandableListView的indicator图标实现方法

本文实例讲述了Android改变ExpandableListView的indicator图标实现方法.分享给大家供大家参考,具体如下: 1)定义xml文件先,命名为expand_list_indicator.xml <?xml version="1.0" encoding="UTF-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&

Android编程简单设置ListView分割线的方法

本文实例讲述了Android编程简单设置ListView分割线的方法.分享给大家供大家参考,具体如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ListView android

Android 关于ExpandableListView刷新问题的解决方法

正文 首先是最基础的 ExpandableListView vList = (ExpandableListView) this.findViewById(R.id.list); EListAdapter adapter = new EListAdapter(getApplicationContext(), list); //list 是数据源 vList.setAdapter(adapter); //适配器就不写了, 都懂的 class EListAdapter extends BaseExpa

Android实现无标题栏全屏的方法_Android

Android中实现全屏.无标题栏的两种办法,另附Android系统自带样式的解释 实现全屏无标题栏: 1.在xml文件中进行配置 AndroidManifest.xml中,找到需要全屏或设置成无标题栏的Activity,在该Activity进行如下配置即可. 实现全屏效果: android:theme="@android:style/Theme.NoTitleBar.Fullscreen"   实现无标题栏(但有系统自带的任务栏): android:theme="@andr

Android中ExpandableListView的用法实例_Android

本文实例讲述了Android中ExpandableListView的用法,ExpandableListView是android中可以实现下拉list的一个控件,具体的实现方法如下: 首先:在layout的xml文件中定义一个ExpandableListView 复制代码 代码如下: <LinearLayout       android:id="@+id/linearLayout"      android:layout_width="fill_parent"