Java Code Examples for android.widget.ListView.setHeaderDividersEnabled()

The following are Jave code examples for showing how to use setHeaderDividersEnabled() of the android.widget.ListView class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Mount   File: MountActivity.java   View Source Code Vote up 5 votes
private void setupListView() {
    mListView = (ListView) findViewById(R.id.list);

    mPackageList = new ArrayList<>();
    mPackageAdapter = new PackageItemAdapter(this, mPackageList);
    mListView.setAdapter(mPackageAdapter);
    mListView.setHeaderDividersEnabled(false);

    mListView.setOnScrollListener(this); // not show fast scroll always
    mListView.setOnItemClickListener(this);
}
 
Example 2
Project: sctalk   File: PullToRefreshListViewForNoneHeaderDivider.java   View Source Code Vote up 5 votes
@Override
protected ListView createRefreshableView(Context context, AttributeSet attrs) {
	ListView lv = createListView(context, attrs);

	// Set it to this so it can be used in ListActivity/ListFragment
	lv.setId(android.R.id.list);
	lv.setHeaderDividersEnabled(false);
	
	return lv;
}