Verified
Status Update
Comments
sm...@android.com <sm...@android.com> #3
Another workflow that should be updated is File > New > XML > Layout XML File. (see screenshot)
sm...@google.com <sm...@google.com> #4
Can this still make it into 3.0?
ni...@google.com <ni...@google.com>
tn...@google.com <tn...@google.com> #5
Perhaps we should only do this if ConstraintLayout is part of the dependencies for the project.
(If not, and somebody is working on an older project that doesn't depend on it and use it yet, they might fin it annoying that it keeps doing this. L(Note that New > XML > Layout is still the way to make new XML files for people who don't use the layout editor.)
P.S. You can use this GradleUtil method:
public static boolean dependsOn(@NonNull AndroidModuleModel androidModel, @NonNull String artifact) {
Here "artifact" is an unfortunate parameter name; it's really groupid:artifact, e.g. for constraint layout would be
com.android.support.constraint:constraint-layout
(If not, and somebody is working on an older project that doesn't depend on it and use it yet, they might fin it annoying that it keeps doing this. L(Note that New > XML > Layout is still the way to make new XML files for people who don't use the layout editor.)
P.S. You can use this GradleUtil method:
public static boolean dependsOn(@NonNull AndroidModuleModel androidModel, @NonNull String artifact) {
Here "artifact" is an unfortunate parameter name; it's really groupid:artifact, e.g. for constraint layout would be
com.android.support.constraint:constraint-layout
Description
Note: The actual dialog depends on whether you're using "Project" or "Android" view in the project window. Both show LinearLayout by default, shown in screenshots attached.