ConstraintLayout Tutorial Part 4 – BARRIERS AND GROUPS – Android Studio Tutorial



In part 4 of the ConstraintLayout tutorial, we will learn how to use some of the new features and helpers of version 1.1.0 of the ConstraintLayout.
We will set the app:layout_constrainedWidth attribute to true to make a view with a width of wrap_content shrink to it’s constraints’ width if they are smaller than it’s wrap_content width. And vice versa there is also an app:layout_constrainedHeight attribute for the height.
We will also learn how to use the app:layout_constraintWidth_percent and app:layout_constraintHeight_percent attributes to set the size of a view as a percentage of the parent layout, and how to use barriers to move views dynamically when other views grow in size, by referencing them in the app:constraint_referenced_ids attribute. With the app:barrierAllowsGoneWidgets attribute we can change if the barrier should be constrained by widgets with a visibility of gone.
And lastly we will learn how to reference and use groups to change the visibility state of multiple views at once, either directly in xml or in Java code.

Watch the full playlist:

____________________
⭐ Get my new MVVM Caching Course now:

❗ Subscribe to the channel:

💲 Earn money by becoming an affiliate for my courses:

📨 Subscribe to the Coding in Flow newsletter:

💻 Hire me for your next project:

💚 Donate to Coding in Flow with a message:

❓ Ask your programming questions in our chat:

📣 Follow Coding in Flow on other sites:
Facebook:
Instagram:
Twitter:
Github:

Tag: constraintlayout trong android, 2018, android, android development, android studio, android studio tutorial, android tutorial, beginners, tutorial, constraintlayout, constraintlayout android, constraintlayout barrier, constraintlayout group, constraintlayout 1.1, android constraintlayout, android constraintlayout tutorial, android constraintlayout barrier, android constraintlayout group, constraintlayout group visibility, constraintlayout group views, constraintlayout barrier not working

Xem thêm: https://icongnghe.org/category/pc

Nguồn: https://icongnghe.org

Bài viết liên quan

24 Bình luận. Leave new

Trả lời

Email của bạn sẽ không được hiển thị công khai.

Fill out this field
Fill out this field
Vui lòng nhập địa chỉ email hợp lệ.
You need to agree with the terms to proceed

Tuyendaily22

Xem nhiều nhất

Menu