Загрузка...

Collapsing Toolbar with RecyclerView

In this video I show you how to implement some custom scrolling behavior for toolbars when used in the same layout as a RecyclerView.

Many people don't know this but a RecyclerView is designed to work with a CoordinatorLayout, AppBarLayout, and Toolbar to implement these custom behaviors. It's very simple. All you need to do is specify some attributes in the xml.

There's many different scroll flags you can use. Some examples are: SCROLL_FLAG_ENTER_ALWAYS, SCROLL_FLAG_ENTER_ALWAYS_COLLAPSED, SCROLL_FLAG_EXIT_UNTIL_COLLAPSED,
SCROLL_FLAG_SCROLL,
SCROLL_FLAG_SNAP, and others.

➤ The best Android courses in the WORLD:
↻ https://codingwithmitch.com/courses/

➤ Android development for complete beginners:
↻ https://codingwithmitch.com/courses/sqlite-room-persistence-android/

Видео Collapsing Toolbar with RecyclerView канала CodingWithMitch
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять