/** * overwrite the getItemViewType to correctly return the value from the FastAdapter * * @param position * @return */ @Override public int getItemViewType(int position) { return mFastAdapter.getItemViewType(position); }
/** * overwrite the getItemViewType to correctly return the value from the FastAdapter * * @param position * @return */ @Override public int getItemViewType(int position) { return mFastAdapter.getItemViewType(position); }
@Test public void getItemViewType() throws Exception { List<TestItem> items = TestDataGenerator.genTestItemList(100); itemAdapter.set(items); assertThat(adapter.getItemViewType(40)).isEqualTo(-1); }
@Test public void getItemViewType() throws Exception { List<TestItem> items = TestDataGenerator.genTestItemList(100); itemAdapter.set(items); assertThat(adapter.getItemViewType(40)).isEqualTo(-1); }