There is no native FlowLayout component, so for people. The following library gives a hand, but changing the space between category can be tricky, so we made it as default to get things done.
Take a look if you are interested:
https://github.com/hongyangAndroid/FlowLayout