A Div-like Android layout using FlexboxLayout

Gal Maoz
Gal Maoz
Feb 13 · 4 min read
  1. If there isn’t enough room for a new element in a line, it should go down to a new line.
Our engineers were a bit worried about manually implementing this layout

implementation 'com.google.android:flexbox:1.1.0'

Flexbox’s Flexibility

Flexbox offers two ways of usage:

  1. As a layout manager for a RecyclerView.

Flexbox in a nutshell

Before finalizing this UI, let’s take a moment to learn a bit more about what Flexbox has to offer.

Configuring your RecyclerView with a FlexboxLayoutManager

Gett Engineering

Code, stories, tips, thoughts, experimentations from the day-to-day work of our R&D team.

Gal Maoz

Written by

Gal Maoz

Android developer at Gett

Gett Engineering

Code, stories, tips, thoughts, experimentations from the day-to-day work of our R&D team.