BaseAdapter notifyDataSetChanged - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for BaseAdapter notifyDataSetChanged method.

This code example shows how to use the following methods:notifyDataSetChanged
        info.view = view;
        info.data = data;
        info.isSelectable = isSelectable;
 
        headers.add(info);
        wrapped.notifyDataSetChanged();
        return this;
    } 
 
    /** 
     * Add non-selectable footer view with no data 
     * 
     * @see #addFooter(View, Object, boolean) 
     * @param view 
     * @return this adapter 
     */ 
    public HeaderFooterListAdapter<E> addFooter(View view) {
        return addFooter(view, null, false);
    } 
 
8
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
            ((FavoritesListAdapter) mAdapter).fillWithItems(mFeedItems);
        } else { 
            mAdapter = new FeedItemsListAdapter(getBaseActivity());
            ((FeedItemsListAdapter) mAdapter).fillWithItems(mFeedItems);
        } 
        mAdapter.notifyDataSetChanged();
 
        setListAdapter(mAdapter);
    } 
 
    @Override 
    public void onLoaderReset(Loader<List<FeedItem>> listLoader) {
        mFeedItems.clear();
    } 
} 
7
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
        info.view = view;
        info.data = data;
        info.isSelectable = isSelectable;
 
        headers.add(info);
        wrapped.notifyDataSetChanged();
        return this;
    } 
 
    /** 
     * Add non-selectable footer view with no data 
     * 
     * @see #addFooter(View, Object, boolean) 
     * @param view 
     * @return this adapter 
     */ 
    public HeaderFooterListAdapter<E> addFooter(View view) {
        return addFooter(view, null, false);
    } 
 
6
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
        this.adapter = adapter;
    } 
 
    @Override 
    public void onSuccess() { 
        adapter.notifyDataSetChanged();
    } 
} 
6
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
        selection.remove(handle);
        if (getSelectionCount() == 0) { 
            finishActionMode(); 
            return; 
        } 
        owner.notifyDataSetChanged();
        onItemSelectedStateChanged(); 
    } 
 
    Set<Long> getSelection() {
        // Return a copy to prevent concurrent modification problems 
        return new HashSet<Long>(selection);
    } 
 
    int getSelectionCount() { 
        return selection.size();
    } 
 
    boolean isSelected(long handle) {
        return selection.contains(handle);
5
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
        Toast.makeText(getContext(), toastText, Toast.LENGTH_SHORT).show();
    } 
 
    private void removeContent() { 
        mHistory.remove(mHistoryEntry);
        mAdapter.notifyDataSetChanged();
    } 
 
    public HistoryEntry getHistoryEntry() { 
        return mHistoryEntry;
    } 
 
    public void setHistoryEntry(HistoryEntry historyEntry) {
        this.mHistoryEntry = historyEntry;
    } 
 
    public History getHistory() { 
        return mHistory;
    } 
 
5
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
        info.view = view;
        info.data = data;
        info.isSelectable = isSelectable;
 
        headers.add(info);
        wrapped.notifyDataSetChanged();
        return this;
    } 
 
    /** 
     * Add non-selectable footer view with no data 
     * 
     * @see #addFooter(View, Object, boolean) 
     * @param view 
     * @return this adapter 
     */ 
    public HeaderFooterListAdapter<E> addFooter(View view) {
        return addFooter(view, null, false);
    } 
 
5
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged, getItem
    } 
 
    /** {@inheritDoc} */ 
    @Override 
    public void onListItemClick(ListView l, View v, int position, long id) {
        final Cursor cursor = (Cursor) mAdapter.getItem(position);
        String vendorId = cursor.getString(VendorsQuery.VENDOR_ID);
        if (mCallbacks.onVendorSelected(vendorId)) {
            mSelectedVendorId = vendorId;
            mAdapter.notifyDataSetChanged();
        } 
    } 
 
    @Override 
    public Loader<Cursor> onCreateLoader(int id, Bundle data) {
        return new CursorLoader(getActivity(), mVendorsUri, VendorsQuery.PROJECTION, null, null,
                ScheduleContract.Vendors.DEFAULT_SORT); 
    } 
 
    @Override 
5
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
        Toast.makeText(getContext(), toastText, Toast.LENGTH_SHORT).show();
    } 
 
    private void removeContent() { 
        mHistory.remove(mHistoryEntry);
        mAdapter.notifyDataSetChanged();
    } 
 
    public HistoryEntry getHistoryEntry() { 
        return mHistoryEntry;
    } 
 
    public void setHistoryEntry(HistoryEntry historyEntry) {
        this.mHistoryEntry = historyEntry;
    } 
 
    public History getHistory() { 
        return mHistory;
    } 
 
5
CodeRank
This code example shows how to use the following methods:notifyDataSetChanged
	} 
 
	public void setText1(String text1) {
		this.text1 = text1;
		if (adapter != null) {
			adapter.notifyDataSetChanged();
		} 
	} 
 
	public String getText2() {
		return text2;
	} 
 
	public void setText2(String text2) {
		this.text2 = text2;
		if (adapter != null) {
			adapter.notifyDataSetChanged();
		} 
	} 
 
4
CodeRank

Related BaseAdapter notifyDataSetChanged Questions & Answers:

notifyDataSetChanged Method Overview
Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.
See Code Examples for other Android BaseAdapter Methods: