All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gawst.asyncdb.adapter.InMemoryTreeSetAdapter Maven / Gradle / Ivy

Go to download

A set of helper class to keep a copy of small SQLite databases in memory in Android

There is a newer version: 3.1.1
Show newest version
package org.gawst.asyncdb.adapter;

import org.gawst.asyncdb.InMemoryDbTreeSet;

import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;

/**
 * Basic {@link android.widget.ListAdapter ListAdapter} using a {@link InMemoryDbTreeSet} data source
 *
 * @param  Type of the elements stored in the {@link InMemoryDbTreeSet}
 */
public class InMemoryTreeSetAdapter extends InMemoryFilteredTreeAdapter {

	/**
	 * Constructor for the adapter.
	 *
	 * @param context          {@code Context} used to get the layout inflater.
	 * @param array            The data source, monitored for changes.
	 * @param layoutResourceId The layout to inflate to display an element. It must contain a {@code TextView} element with id
	 *                         {@code android.R.id.text1} unless you inflate the {@code View} yourself.
	 */
	public InMemoryTreeSetAdapter(@NonNull Context context, @NonNull InMemoryDbTreeSet array, @LayoutRes int layoutResourceId) {
		super(context, array, layoutResourceId, null);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy