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

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -