How to Programmatically Setup a ConstraintLayout with ConstraintLayout.LayoutParams

Pubblicato il: 08 novembre 2021
sul canale di: Gina Sprint
3,764
31

This video is an introduction to programmatically creating a ConstraintLayout, child views, and constraints for Android using Java. Specifically, it uses the ConstraintLayout.LayoutParams class (as opposed to the ConstraintSet class) to set up the constraints for a 2x2 grid of buttons that equally share the available screen space in portrait and landscape now.

Previous video showing how to set up ConstraintLayout using XML/design editor:    • Introduction to Android ConstraintLayout a...  
Previous video showing how to do this using ConstraintSet:    • How to Programmatically Setup an Android C...  
Next video showing how to set up vertical and horizontal ConstraintLayout chains and chain styles:    • How to Programmatically Setup a Android Co...  

ConstraintLayout documentation: https://developer.android.com/trainin...


In questa pagina del sito puoi guardare il video online How to Programmatically Setup a ConstraintLayout with ConstraintLayout.LayoutParams della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Gina Sprint 08 novembre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,764 volte e gli è piaciuto 31 spettatori. Buona visione!