use of android.view.Include in project android_frameworks_base by DirtyUnicorns.
the class IncludeTest method testIncludedWithVisibility.
@MediumTest
public void testIncludedWithVisibility() throws Exception {
final Include activity = getActivity();
final View button1 = activity.findViewById(R.id.included_button_visibility);
assertEquals("Included button should be invisible", View.INVISIBLE, button1.getVisibility());
}
use of android.view.Include in project android_frameworks_base by AOSPA.
the class IncludeTest method testIncludedWithLayoutParams.
@MediumTest
public void testIncludedWithLayoutParams() throws Exception {
final Include activity = getActivity();
final View button1 = activity.findViewById(R.id.included_button);
final View button2 = activity.findViewById(R.id.included_button_overriden);
assertTrue("Both buttons should have different width", button1.getLayoutParams().width != button2.getLayoutParams().width);
assertTrue("Both buttons should have different height", button1.getLayoutParams().height != button2.getLayoutParams().height);
}
use of android.view.Include in project android_frameworks_base by AOSPA.
the class IncludeTest method testIncludedWithVisibility.
@MediumTest
public void testIncludedWithVisibility() throws Exception {
final Include activity = getActivity();
final View button1 = activity.findViewById(R.id.included_button_visibility);
assertEquals("Included button should be invisible", View.INVISIBLE, button1.getVisibility());
}
use of android.view.Include in project android_frameworks_base by crdroidandroid.
the class IncludeTest method testIncludedWithVisibility.
@MediumTest
public void testIncludedWithVisibility() throws Exception {
final Include activity = getActivity();
final View button1 = activity.findViewById(R.id.included_button_visibility);
assertEquals("Included button should be invisible", View.INVISIBLE, button1.getVisibility());
}
Aggregations