Best code examples for ListView getAdapter method (android.widget.ListView.getAdapter)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ListView getAdapter method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

ListView getAdapter examples from Open Source projects
This code example shows how to use the following methods: getChildAt, performItemClick, getAdapter
53:	long itemId = listView.getAdapter().getItemId(TESTED_CLICKED_INDEX); 
54:	View view = listView.getChildAt(TESTED_CLICKED_INDEX); 
-
57:	listView.performItemClick(view, TESTED_CLICKED_INDEX, itemId); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: setOnTouchListener, setOnScrollListener, getAdapter, setAdapter
42:	ListAdapter rightAdapter = rightListView.getAdapter(); 
-
50:	rightListView.setAdapter(rightAdapter); 
-
53:	rightListView.setOnTouchListener(this); 
-
55:	rightListView.setOnScrollListener(this); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getChildAt, getChildCount, getListPaddingTop, getAdapter
117:	View firstChild = mListView.getChildAt(0); 
118:	if (firstChild.getTop() < this.mListView.getListPaddingTop()) { 
119:	firstChild = mListView.getChildAt(1); 
-
122:	View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 
-
129:	View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1); 
-
132:	assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1, 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: scrollToBottom, getHeight, getChildAt, getChildCount, getListPaddingBottom
76:	int originalCount = mListView.getChildCount(); 
-
78:	TouchUtils.scrollToBottom(this, mListView); 
-
82:	mListView.getSelectedItemPosition()); 
-
84:	View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 
-
86:	assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, 
-
90:	mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); 
-
93:	mListView.getChildCount(), originalCount + 1), 
94:	mListView.getChildCount() <= originalCount + 1); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLayoutParams, setLayoutParams, getAdapter, getDividerHeight
267:	int itemCount = lv.getAdapter().getCount(); 
268:	int divider = lv.getDividerHeight(); 
-
270:	ViewGroup.LayoutParams lp = lv.getLayoutParams(); 
-
272:	lv.setLayoutParams(lp); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getVerticalFadingEdgeLength, getChildCount, getSelectedView, getAdapter
44:	mListView.getSelectedView().getHeight() < mListView.getVerticalFadingEdgeLength()); 
-
46:	mListView.getChildCount() < mListView.getAdapter().getCount()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAdapter
46:	assertTrue(list.getAdapter().getCount()>0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLayoutParams, setLayoutParams, getAdapter, getDividerHeight
268:	int itemCount = lv.getAdapter().getCount(); 
269:	int divider = lv.getDividerHeight(); 
-
271:	ViewGroup.LayoutParams lp = lv.getLayoutParams(); 
-
273:	lv.setLayoutParams(lp); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAdapter
89:	selection.setText(parent.getAdapter().getItem(position).toString()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getLayoutParams, setLayoutParams, getAdapter, getDividerHeight
272:	int itemCount = lv.getAdapter().getCount(); 
273:	int divider = lv.getDividerHeight(); 
-
275:	ViewGroup.LayoutParams lp = lv.getLayoutParams(); 
-
277:	lv.setLayoutParams(lp); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: scrollToBottom, getHeight, getChildAt, getChildCount, getListPaddingBottom
83:	TouchUtils.scrollToBottom(this, mListView); 
-
87:	mListView.getSelectedItemPosition()); 
-
89:	View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 
-
91:	assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, 
-
95:	mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: scrollToBottom, getHeight, getChildAt, getChildCount, getListPaddingBottom
76:	int originalCount = mListView.getChildCount(); 
-
78:	TouchUtils.scrollToBottom(this, mListView); 
-
82:	mListView.getSelectedItemPosition()); 
-
84:	View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); 
-
86:	assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, 
-
90:	mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom()); 
-
93:	mListView.getChildCount(), originalCount + 1), 
94:	mListView.getChildCount() <= originalCount + 1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLayoutParams, setLayoutParams, getAdapter, getDividerHeight
270:	int itemCount = lv.getAdapter().getCount(); 
271:	int divider = lv.getDividerHeight(); 
-
273:	ViewGroup.LayoutParams lp = lv.getLayoutParams(); 
-
275:	lv.setLayoutParams(lp); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getAdapter
46:	assertTrue(list.getAdapter().getCount()>0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAdapter
83:	selection.setText(parent.getAdapter().getItem(position).toString()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setVisibility, getAdapter
80:	CursorAdapter adapter = (CursorAdapter) mListView.getAdapter(); 
-
103:	mListView.setVisibility( View.GONE ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getVerticalFadingEdgeLength, getChildCount, getSelectedView, getAdapter
44:	mListView.getSelectedView().getHeight() < mListView.getVerticalFadingEdgeLength()); 
-
46:	mListView.getChildCount() < mListView.getAdapter().getCount()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setOnScrollListener, getAdapter
221:	Adapter adapter = this.mList.getAdapter(); 
-
236:	this.mList.setOnScrollListener(this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAdapter
92:	ListAdapter adapter = listView.getAdapter(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAdapter
109:	DeviceAdminInfo dpi = (DeviceAdminInfo)l.getAdapter().getItem(position); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getAdapter
46:	assertTrue(list.getAdapter().getCount()>0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAdapter
80:	String lang = (String) ((LanguageListAdapter) languageListView.getAdapter()) 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAdapter
102:	((WeaponListAdapter) mListView.getAdapter()).setData(data); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setItemChecked, getAdapter
215:	ResourceCursorAdapter adapter = (ResourceCursorAdapter) listHostGroups.getAdapter(); 
-
218:	listHostGroups.setItemChecked(restoreHostGroupPos, true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getAdapter, getHeaderViewsCount
164:	int headersCount = listView.getHeaderViewsCount(); 
-
166:	if ((pos >= 0) && (pos < listView.getAdapter().getCount())) { 
167:	T t = (T)listView.getAdapter().getItem(pos); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setOnScrollListener, getAdapter
239:	Adapter adapter = mList.getAdapter(); 
-
254:	mList.setOnScrollListener(this); 
Full Snippet Info
4
CodeRank
Related ListView getAdapter Questions & Answers:
getAdapter Method Overview
Returns the adapter currently in use in this ListView.
See Also