Changes

Jump to: navigation, search

A Guide to using ConstraintLayout in Android Studio

7 bytes removed, 18:38, 10 January 2019
Configuring Widget Dimensions
When designing a responsive and adaptable user interface layout, it is important to take into consideration both bias and opposing constraints when manually designing a user interface layout and making corrections to automatically created constraints.
== Configuring Configuring Widget Dimensions ==
The inner dimensions of a widget within a ConstraintLayout can also be configured using the Inspector. As outlined in the previous chapter, widget dimensions can be set to wrap content, fixed or match constraint modes. The prevailing settings for each dimension on the currently selected widget are shown within the square representing the widget in the Inspector as illustrated in Figure 18-23:
In the above figure, both the horizontal and vertical dimensions are set to wrap content mode (indicated by the inward pointing chevrons). The inspector uses the following visual indicators to represent the three dimension modes:
[[File:Android studio constraint fixed dimension.png|Fixed size indicator]] - Fixed size<br>
[[File:Android studio constraint anysize dimension.png|any size indicator]] - Any Size<br>
[[File:Android studio constraint wrapcontent dimension.png|Wrap content indicator]] - Wrap content<br>
[[Image:.png]]
 
== Adding Guidelines ==

Navigation menu