I have two TextViews that are horizontally chained and displayed in a DialogFragment. That two TextView's visiblity set by dynamically, ie, sometimes tvA will be visible and sometimes tvB or both will display.
When this code run on a real device the corresponding TexView's width became zero and it is not visible anymore. But when I removed the chain It is working as it is.
It is based on the RecyclerView if it's height given match_contraints value it will shrink to the one cell height irrespective of how many items are there, but when I gave match_parent, it is wrapped to the items presented in it.
Please not that this view is inflated in DialogFragment
I have two
TextView
s that are horizontally chained and displayed in aDialogFragment
. That twoTextView
's visiblity set by dynamically, ie, sometimestvA
will be visible and sometimestvB
or both will display.Please not that this view is inflated in
DialogFragment
Here is my stackoverflow link