use of com.tonicartos.superslim.util.TestAdapterBuilder in project SuperSLiM by TonicArtos.
the class LinearLayoutTests method test_overscrollBeforeStartBeforeEnd.
@Test
public void test_overscrollBeforeStartBeforeEnd() throws Exception {
final int numItems = 1;
final int dy = 100;
RecyclerView.Adapter adapter;
int[] layoutPadding;
adapter = new TestAdapterBuilder().addLinearSection(numItems, Utils.RV_WIDTH, Utils.RV_HEIGHT, null).build(mActivity);
layoutPadding = new int[] { 0, 0, 0, 0 };
Utils.doOverscrollTest(new int[] { 0, -dy }, layoutPadding, true, adapter, mLayoutManager, mRecyclerView);
}
use of com.tonicartos.superslim.util.TestAdapterBuilder in project SuperSLiM by TonicArtos.
the class LinearLayoutTests method test_overscrollAtStartAtEnd.
@Test
public void test_overscrollAtStartAtEnd() throws Exception {
final int numItems = 1;
RecyclerView.Adapter adapter;
int[] layoutPadding;
adapter = new TestAdapterBuilder().addLinearSection(numItems, Utils.RV_WIDTH, Utils.RV_HEIGHT, null).build(mActivity);
layoutPadding = new int[] { 0, 0, 0, 0 };
Utils.doOverscrollTest(new int[] { 0, 0 }, layoutPadding, false, adapter, mLayoutManager, mRecyclerView);
}
use of com.tonicartos.superslim.util.TestAdapterBuilder in project SuperSLiM by TonicArtos.
the class LinearLayoutTests method test_overscrollBeforeStartAtEnd.
@Test
public void test_overscrollBeforeStartAtEnd() throws Exception {
final int numItems = 1;
final int dy = 100;
RecyclerView.Adapter adapter;
int[] layoutPadding;
adapter = new TestAdapterBuilder().addLinearSection(numItems, Utils.RV_WIDTH, Utils.RV_HEIGHT + dy, null).build(mActivity);
layoutPadding = new int[] { 0, 0, 0, 0 };
Utils.doOverscrollTest(new int[] { 0, -dy }, layoutPadding, false, adapter, mLayoutManager, mRecyclerView);
}
use of com.tonicartos.superslim.util.TestAdapterBuilder in project SuperSLiM by TonicArtos.
the class LinearLayoutTests method test_overscrollBeforeStartAfterEnd.
@Test
public void test_overscrollBeforeStartAfterEnd() throws Exception {
final int numItems = 1;
final int dy = 100;
RecyclerView.Adapter adapter;
int[] layoutPadding;
adapter = new TestAdapterBuilder().addLinearSection(numItems, Utils.RV_WIDTH, Utils.RV_HEIGHT + dy * 2, null).build(mActivity);
layoutPadding = new int[] { 0, 0, 0, 0 };
Utils.doOverscrollTest(new int[] { 0, -dy }, layoutPadding, false, adapter, mLayoutManager, mRecyclerView);
}
use of com.tonicartos.superslim.util.TestAdapterBuilder in project SuperSLiM by TonicArtos.
the class LinearLayoutTests method test_overscrollAfterStartBeforeEnd.
@Test
public void test_overscrollAfterStartBeforeEnd() throws Exception {
final int numItems = 1;
final int dy = 100;
RecyclerView.Adapter adapter;
int[] layoutPadding;
adapter = new TestAdapterBuilder().addLinearSection(numItems, Utils.RV_WIDTH, Utils.RV_HEIGHT - dy * 2, null).build(mActivity);
layoutPadding = new int[] { 0, 0, 0, 0 };
Utils.doOverscrollTest(new int[] { 0, dy }, layoutPadding, true, adapter, mLayoutManager, mRecyclerView);
}
Aggregations