Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is ConstraintLayout source code located?

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.

like image 704
Eugene Nefedov Avatar asked Aug 15 '17 10:08

Eugene Nefedov


People also ask

Is ConstraintLayout faster than LinearLayout?

More complex layout but results are the same, flat Constraint Layout is slower than nested Linear Layout.

Why do we use ConstraintLayout in Android?

A ConstraintLayout is a ViewGroup which allows you to position and size widgets in a flexible way. Note: ConstraintLayout is available as a support library that you can use on Android systems starting with API level 9 (Gingerbread). As such, we are planning on enriching its API and capabilities over time.

What is Androidx ConstraintLayout?

GitHub - androidx/constraintlayout: ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way.


1 Answers

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

like image 125
Louis CAD Avatar answered Oct 20 '22 17:10

Louis CAD