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

Deep Dive into Constraint Layout 2.0

Deep Dive into Constraint Layout 2.0

Covered best practices of using ConstraintLayout on Android, particularly on Constraint layout 2.0 library.

Included topics
Getting started: What is Constraint layout?
Components such as Barriers, Chains, Guidelines, Constraint set, Groups
What is MotionLayout
Highlights of the key usages
Where to use MotionLayout
App examples

Anamika Tripathi

November 02, 2019
Tweet

Other Decks in Education

Transcript

  1. About session • Constraint Layout 1.x • Motion Editor •

    Motion Layout • Hands on : Motion Layout
  2. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  3. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  4. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  5. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  6. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  7. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  8. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  9. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  10. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  11. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  12. Constraint Layout 1.x • Easy positioning view • Guidelines •

    Barriers • Chains • Bias • Image ratio
  13. What do we need? • Start Position • End position

    • Transition from start to end • Anything else?
  14. Learning Resources Introduction to MotionLayout series https://medium.com/google-developers/introduction-to-motionlayout-part- i-29208674b10d Official Docs

    https://developer.android.com/reference/android/support/constraint/motion/ MotionLayout What’s new in ConstraintLayout https://www.youtube.com/watch?v=29gLA90m6Gk Official Samples on Github https://github.com/googlesamples/android-ConstraintLayoutExamples