Fields Summary |
---|
private android.view.View | mLeftView |
private android.view.View | mRightView |
private android.view.View | mCenterHorizontalView |
private android.view.View | mLeftCenterVerticalView |
private android.view.View | mRighCenterVerticalView |
private android.view.View | mCenterView |
private android.view.View | mLeftBottomView |
private android.view.View | mRightBottomView |
private android.view.View | mCenterHorizontalBottomView |
private android.view.View | mParent |
Methods Summary |
---|
protected void | setUp()
super.setUp();
final Activity activity = getActivity();
mParent = activity.findViewById(R.id.parent);
mLeftView = activity.findViewById(R.id.left);
mRightView = activity.findViewById(R.id.right);
mCenterHorizontalView = activity.findViewById(R.id.center_horizontal);
mLeftCenterVerticalView = activity.findViewById(R.id.left_center_vertical);
mRighCenterVerticalView = activity.findViewById(R.id.right_center_vertical);
mCenterView = activity.findViewById(R.id.center);
mLeftBottomView = activity.findViewById(R.id.left_bottom);
mRightBottomView = activity.findViewById(R.id.right_bottom);
mCenterHorizontalBottomView = activity.findViewById(R.id.center_horizontal_bottom);
|
public void | testCenterAligned()
ViewAsserts.assertHorizontalCenterAligned(mParent, mCenterView);
ViewAsserts.assertVerticalCenterAligned(mParent, mCenterView);
|
public void | testCenterHorizontalBottomAligned()
ViewAsserts.assertHorizontalCenterAligned(mParent, mCenterHorizontalBottomView);
ViewAsserts.assertBottomAligned(mParent, mCenterHorizontalBottomView);
|
public void | testCenterHorizontalTopAligned()
ViewAsserts.assertHorizontalCenterAligned(mParent, mCenterHorizontalView);
ViewAsserts.assertTopAligned(mParent, mCenterHorizontalView);
|
public void | testLeftBottomAligned()
ViewAsserts.assertLeftAligned(mParent, mLeftBottomView);
ViewAsserts.assertBottomAligned(mParent, mLeftBottomView);
|
public void | testLeftCenterVerticalAligned()
ViewAsserts.assertLeftAligned(mParent, mLeftCenterVerticalView);
ViewAsserts.assertVerticalCenterAligned(mParent, mLeftCenterVerticalView);
|
public void | testLeftTopAligned()
ViewAsserts.assertLeftAligned(mParent, mLeftView);
ViewAsserts.assertTopAligned(mParent, mLeftView);
|
public void | testRightBottomAligned()
ViewAsserts.assertRightAligned(mParent, mRightBottomView);
ViewAsserts.assertBottomAligned(mParent, mRightBottomView);
|
public void | testRightCenterVerticalAligned()
ViewAsserts.assertRightAligned(mParent, mRighCenterVerticalView);
ViewAsserts.assertVerticalCenterAligned(mParent, mRighCenterVerticalView);
|
public void | testRightTopAligned()
ViewAsserts.assertRightAligned(mParent, mRightView);
ViewAsserts.assertTopAligned(mParent, mRightView);
|
public void | testSetUpConditions()
assertNotNull(mParent);
assertNotNull(mLeftView);
assertNotNull(mRightView);
assertNotNull(mCenterHorizontalView);
assertNotNull(mLeftCenterVerticalView);
assertNotNull(mRighCenterVerticalView);
assertNotNull(mCenterView);
assertNotNull(mLeftBottomView);
assertNotNull(mRightBottomView);
assertNotNull(mCenterHorizontalBottomView);
|