当前位置: 首页>>代码示例>>Java>>正文


Java DataSetObservable类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:twitter,项目名称:twitter-kit-android,代码行数:19,代码来源:TimelineDelegate.java

示例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;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:9,代码来源:ImageStripAdapter.java

示例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);
}
 
开发者ID:twitter,项目名称:twitter-kit-android,代码行数:13,代码来源:TimelineDelegateTest.java

示例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;
}
 
开发者ID:itkach,项目名称:aard2-android,代码行数:8,代码来源:BaseDescriptorList.java

示例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();
}
 
开发者ID:mcxtzhang,项目名称:all-base-adapter,代码行数:7,代码来源:BaseAdapter.java

示例6: PagerAdapter

import android.database.DataSetObservable; //导入依赖的package包/类
public PagerAdapter()
{
    a = new DataSetObservable();
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:5,代码来源:PagerAdapter.java

示例7: PagerAdapter

import android.database.DataSetObservable; //导入依赖的package包/类
public PagerAdapter()
{
    mObservable = new DataSetObservable();
}
 
开发者ID:Hamz-a,项目名称:MyCTFWriteUps,代码行数:5,代码来源:PagerAdapter.java

示例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());
}
 
开发者ID:itkach,项目名称:aard2-android,代码行数:49,代码来源:BlobDescriptorList.java

示例9: getAccountObservable

import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getAccountObservable() {
    return mAccountObservable;
}
 
开发者ID:george-zhang-work,项目名称:dove,代码行数:5,代码来源:ReaderActivity.java

示例10: getDrawerObservable

import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getDrawerObservable() {
    return mDrawerObservable;
}
 
开发者ID:george-zhang-work,项目名称:dove,代码行数:5,代码来源:ReaderActivity.java

示例11: getDrawerObserverable

import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getDrawerObserverable() {
    return mDrawerObservable;
}
 
开发者ID:george-zhang-work,项目名称:dove,代码行数:5,代码来源:AbstractActivityController.java

示例12: getFolderObserverable

import android.database.DataSetObservable; //导入依赖的package包/类
@Override
public DataSetObservable getFolderObserverable() {
    return mFolderObservable;
}
 
开发者ID:george-zhang-work,项目名称:dove,代码行数:5,代码来源:AbstractActivityController.java

示例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;
    
}
 
开发者ID:itsmechlark,项目名称:greendao-cipher,代码行数:9,代码来源:AbstractCursor.java

示例14: ObservableSparseArrayCompat

import android.database.DataSetObservable; //导入依赖的package包/类
public ObservableSparseArrayCompat()
{
    super();
    mDataSetObservable = new DataSetObservable();
}
 
开发者ID:dmfs,项目名称:opentasks,代码行数:6,代码来源:ObservableSparseArrayCompat.java

示例15: getDataSetObservable

import android.database.DataSetObservable; //导入依赖的package包/类
public DataSetObservable getDataSetObservable()
{
    return mDataSetObservable;
}
 
开发者ID:dmfs,项目名称:opentasks,代码行数:5,代码来源:ObservableSparseArrayCompat.java


注:本文中的android.database.DataSetObservable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。