mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 06:09:19 +00:00
Add: Categories chips & bar
This commit is contained in:
@ -63,5 +63,16 @@ class ExploreFragment : MainNavFragmentX() {
|
||||
}
|
||||
}
|
||||
}
|
||||
viewModel.categories.observe(viewLifecycleOwner) {
|
||||
binding.categories.removeAllViews()
|
||||
binding.categories.addView(Chip(requireContext(), null, R.attr.chipStyle).apply {
|
||||
setText(R.string.all_applications)
|
||||
})
|
||||
it.forEach {
|
||||
binding.categories.addView(Chip(requireContext(), null, R.attr.chipStyle).apply {
|
||||
text = it
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user