Where is ConstraintLayout source code located?

前端 未结 2 706
一个人的身影
一个人的身影 2021-02-07 06:56

Where can I find the source code for the android ConstraintLayout? I can\'t find it in the support framework repository and even in Google search.

相关标签:
2条回答
  • 2021-02-07 07:40

    Its source code is here: https://android.googlesource.com/platform/frameworks/opt/sherpa/+/studio-3.0/constraintlayout/src/main/java/android/support/constraint/ConstraintLayout.java

    The Android SDK search extension adds a "View source" button on d.android.com reference, which helped me to get this link

    0 讨论(0)
  • 2021-02-07 07:41

    The source code for the AndroidX version of ConstraintLayout is found here: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/ui/ui-layout/src/main/java/androidx/ui/layout/ConstraintLayout.kt

    0 讨论(0)
提交回复
热议问题