Upgrade to Pro — share decks privately, control downloads, hide ads and more …

New Layout Editor with Constraint Layout

New Layout Editor with Constraint Layout

Yuki Shiho

May 25, 2016
Tweet

More Decks by Yuki Shiho

Other Decks in Programming

Transcript

  1. $POTUSBJOU-BZPVUಋೖʢʣ a. Click Tools > Android > SDK Manager. b.

    Click the SDK Tools tab. c. Select Android Support Repository, then click OK. 1. Ensure you have the latest Android Support Repository (version 32 or higher):
  2. $POTUSBJOU-BZPVUಋೖʢʣ dependencies { compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha1' } 2. Add the Constraint

    Layout library as a dependency in your build.gradle file: 3. In the toolbar or sync notification, click Sync Project with Gradle Files.
  3. $POTUSBJOU-BZPVUಋೖʢʣ 4. Create Layout resource file and Add ConstraintLayout. <?xml

    version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"> </android.support.constraint.ConstraintLayout> 5. Select Design tab and makes layout.