Constraintlayout

Square Layout Item on Gridlayout for Recyclerview
Android Constraintlayout Set Width or Height Percent Programatically

app:layout_constraintHeight_percent

Android Set ConstraintLayout Dimension Ratio Programatically