本文整理匯總了Java中android.database.DataSetObservable類的典型用法代碼示例。如果您正苦於以下問題:Java DataSetObservable類的具體用法?Java DataSetObservable怎麽用?Java DataSetObservable使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DataSetObservable類屬於android.database包,在下文中一共展示了DataSetObservable類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: TimelineDelegate
import android.database.DataSetObservable; //導入依賴的package包/類
TimelineDelegate(Timeline<T> timeline, DataSetObservable observable, List<T> items) {
if (timeline == null) {
throw new IllegalArgumentException("Timeline must not be null");
}
this.timeline = timeline;
this.timelineStateHolder = new TimelineStateHolder();
if (observable == null) {
listAdapterObservable = new DataSetObservable();
} else {
listAdapterObservable = observable;
}
if (items == null) {
itemList = new ArrayList<>();
} else {
itemList = items;
}
}
示例2: ImageStripAdapter
import android.database.DataSetObservable; //導入依賴的package包/類
public ImageStripAdapter(int paramInt, OnImageChildViewTapListener paramOnImageChildViewTapListener)
{
this.mImageCount = paramInt;
this.mImages = new Drawable[this.mImageCount];
this.mImageDimensions = new Common.Image.Dimension[this.mImageCount];
this.mDataSetObservable = new DataSetObservable();
this.mImageChildTappedListener = paramOnImageChildViewTapListener;
}
示例3: setUp
import android.database.DataSetObservable; //導入依賴的package包/類
@Before
public void setUp() throws Exception {
mockTimeline = mock(Timeline.class);
mockObservable = mock(DataSetObservable.class);
// lists of items ordered from larger id to smaller
testItems.add(TEST_ITEM_2);
testItems.add(TEST_ITEM_1);
// extra result items ordered from larger id to smaller
testExtraItems.add(TEST_ITEM_4);
testExtraItems.add(TEST_ITEM_3);
testResult = new Result<>(new TimelineResult<>(TEST_TIMELINE_CURSOR, testItems), null);
}
示例4: BaseDescriptorList
import android.database.DataSetObservable; //導入依賴的package包/類
BaseDescriptorList(Class<T> typeParameterClass, DescriptorStore<T> store) {
this.typeParameterClass = typeParameterClass;
this.store = store;
this.dataSetObservable = new DataSetObservable();
this.list = new ArrayList<T>();
this.updating = 0;
}
示例5: BaseAdapter
import android.database.DataSetObservable; //導入依賴的package包/類
public BaseAdapter(Context context, List<T> datas) {
mDatas = datas;
mContext = context;
mInflater = LayoutInflater.from(mContext);
mDataSetObservable = new DataSetObservable();
}
示例6: PagerAdapter
import android.database.DataSetObservable; //導入依賴的package包/類
public PagerAdapter()
{
a = new DataSetObservable();
}
示例7: PagerAdapter
import android.database.DataSetObservable; //導入依賴的package包/類
public PagerAdapter()
{
mObservable = new DataSetObservable();
}
示例8: BlobDescriptorList
import android.database.DataSetObservable; //導入依賴的package包/類
BlobDescriptorList(Application app, DescriptorStore<BlobDescriptor> store, int maxSize) {
this.app = app;
this.store = store;
this.maxSize = maxSize;
this.list = new ArrayList<BlobDescriptor>();
this.filteredList = new ArrayList<BlobDescriptor>();
this.dataSetObservable = new DataSetObservable();
this.filter = "";
keyComparator = Slob.Strength.QUATERNARY.comparator;
nameComparatorAsc = new Comparator<BlobDescriptor>() {
@Override
public int compare(BlobDescriptor b1, BlobDescriptor b2) {
return keyComparator.compare(b1.key, b2.key);
}
};
nameComparatorDesc = Collections.reverseOrder(nameComparatorAsc);
timeComparatorAsc = new Comparator<BlobDescriptor>() {
@Override
public int compare(BlobDescriptor b1, BlobDescriptor b2) {
return Util.compare(b1.createdAt, b2.createdAt);
}
};
timeComparatorDesc = Collections.reverseOrder(timeComparatorAsc);
lastAccessComparator = new Comparator<BlobDescriptor>() {
@Override
public int compare(BlobDescriptor b1, BlobDescriptor b2) {
return Util.compare(b2.lastAccess, b1.lastAccess);
}
};
order = SortOrder.TIME;
ascending = false;
setSort(order, ascending);
try {
filterCollator = (RuleBasedCollator) Collator.getInstance(Locale.ROOT).clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
filterCollator.setStrength(Collator.PRIMARY);
filterCollator.setAlternateHandlingShifted(true);
handler = new Handler(Looper.getMainLooper());
}
示例9: getAccountObservable
import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getAccountObservable() {
return mAccountObservable;
}
示例10: getDrawerObservable
import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getDrawerObservable() {
return mDrawerObservable;
}
示例11: getDrawerObserverable
import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getDrawerObserverable() {
return mDrawerObservable;
}
示例12: getFolderObserverable
import android.database.DataSetObservable; //導入依賴的package包/類
@Override
public DataSetObservable getFolderObserverable() {
return mFolderObservable;
}
示例13: getDataSetObservable
import android.database.DataSetObservable; //導入依賴的package包/類
/**
* This is hidden until the data set change model has been re-evaluated.
* @hide
*/
protected DataSetObservable getDataSetObservable() {
return mDataSetObservable;
}
示例14: ObservableSparseArrayCompat
import android.database.DataSetObservable; //導入依賴的package包/類
public ObservableSparseArrayCompat()
{
super();
mDataSetObservable = new DataSetObservable();
}
示例15: getDataSetObservable
import android.database.DataSetObservable; //導入依賴的package包/類
public DataSetObservable getDataSetObservable()
{
return mDataSetObservable;
}