Finding new components, navigating to their documentation, and applying them
LinearLayout, ConstraintLayout, ImageView, and TextView — suffice it to say, that’s not enough. The Android SDK combined with AndroidX offers a wide array of Views and ViewGroups we may incorporate to bring our design vision into reality.
From buttons to scrolling containers to text input elements, there’s so much more out there. Let’s learn how to find new components, navigate instantly to their documentation, and apply them while following best practices (e.g. Material Design guidelines). Afterward, we will have a better understanding of which components are available to us and how to begin using them in our applications.
The component palette helps us find and add a dynamic range of Views, ViewGroups, and more directly to our layouts.
Styles are external resources that define a set of attributes we may apply to any View using the style attribute, e.g. android:style="@style/my_cool_textview".
The CardViewViewGroup and many other components in the palette are inspired by Material Design guidelines.
Google introduced Material Design in 2014 to help standardize the appearance of web and mobile applications across the Google ecosystem.
Material Design continues to evolve and is available for iOS, Android, and several web frameworks—however, applying its principles is entirely optional.
By right-clicking any element within the component palette, we may navigate to its respective documentation or Material Design guidelines.
We may use an include component to embed the contents of an external layout file into our design.