This repository was archived by the owner on Jul 13, 2020. It is now read-only.
This repository was archived by the owner on Jul 13, 2020. It is now read-only.
lparams when using adapters #159
Open
Description
I have a recycler view adapter, I am creating the item views with anko.
I want the item views to match the width of the container but I am unable to set the proper lparams for them.
Previously when inflating views from XML
LayoutInflater.from(parent.context).inflate(R.layout.test, parentView, false)
The root element inside R.layout.test has the layout_width="match_parent"
Right now I am unsure how to properly create a view using anko that is based on parentView's width
The anko example repo relies on the fact that the layout parameter defaults to match_parent (it uses a ListView, I use a RecyclerView)