use of com.android.tools.idea.uibuilder.handlers.constraint.ConstraintLayoutHandler in project android by JetBrains.
the class SceneMergeTest method testBasicScene.
public void testBasicScene() {
myScreen.get("@+id/root").expectXml("<merge xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + " xmlns:tools=\"http://schemas.android.com/tools\"\n" + " android:id=\"@+id/root\"\n" + " android:layout_width=\"1000dp\"\n" + " android:layout_height=\"1000dp\"\n" + " tools:parentTag=\"android.support.constraint.ConstraintLayout\"/>");
SceneComponent component = myScene.getSceneComponent("root");
assertTrue(component.getDecorator() instanceof ConstraintLayoutDecorator);
Project project = component.getNlComponent().getModel().getProject();
ViewHandler viewGroupHandler = ViewHandlerManager.get(project).getHandler(component.getNlComponent());
assertTrue(viewGroupHandler instanceof ConstraintLayoutHandler);
}
Aggregations