Android disable divider in Custom adapter -



Android disable divider in Custom adapter -

i can not disable divider in custom adpater. xml layout :

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#464646" android:showdividers="none"> </linearlayout>

i'm seek disable programical not work me.

updated post: custom adapter:

public class receivedadapter extends baseadapter { private layoutinflater inflater; private list<receiveditemstructure> row; private textview tv_smsbody; private textview tv_smssender; private textview tv_smsdate; public receivedadapter(context context, list<receiveditemstructure> row) { this.row = row; inflater = layoutinflater.from(context); } }

from listview documentation have :

getlistview().setdivider(null);

from code or xml :

android:divider="@null"

the same code can used in linearlayout well

android

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -