Java Code Examples for android.test.ViewAsserts#assertVerticalCenterAligned()

The following examples show how to use android.test.ViewAsserts#assertVerticalCenterAligned() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestLayoutPropertiesCase.java    From json2view with MIT License 4 votes vote down vote up
public void testAlignedParentCenterCertical() {
    final View view = createContainer(container, createViewWithProperty(jsonObj0, ID0, NAME.LAYOUT_CENTERVERTICAL, ID0, TEXT0), null);
    Holder h = (Holder) view.getTag();
    ViewAsserts.assertVerticalCenterAligned(h.container, h.v0);
}
 
Example 2
Source File: TestLayoutPropertiesCase.java    From json2view with MIT License 4 votes vote down vote up
public void testAlignedParentCenter() {
    final View view = createContainer(container, createViewWithProperty(jsonObj0, ID0, NAME.LAYOUT_CENTERINPARENT, ID0, TEXT0), null);
    Holder h = (Holder) view.getTag();
    ViewAsserts.assertHorizontalCenterAligned(h.container, h.v0);
    ViewAsserts.assertVerticalCenterAligned(h.container, h.v0);
}