An android auto-adaptive layout library
Auto wrap line when item reach parent end
api("io.github.hellogoogle2000:android-flowlayout:1.0.3") you are also enabled to create view from a data set dynamically
val simulated = mutableListOf().apply { for (i in 0 until 30) add(UUID.randomUUID().toString()) } binding.flowLayout.applyViewAdapter({ Button(this) }, simulated) { view, data -> view.text = data view.setPadding(15, 15, 15, 15) val lp = view.layoutParams lp.width = ViewGroup.LayoutParams.WRAP_CONTENT lp.height = ViewGroup.LayoutParams.WRAP_CONTENT } 

