-
Notifications
You must be signed in to change notification settings - Fork 104
Header rows ignore ConstraintLayout/RelativeLayout directives #39
Comments
Probably duplicate of #32 |
Tested another workaround: horizontal LinearLayout using weights to approximate percent widths |
Testing is as easy as modifying demo project to use a very simple RelativeLayout |
Version |
Excellent -- works great, thank you for very fast turnaround |
The width is now fixed, but height seems to have the same issue -- height will squash down |
Header items appear to be unable to use either percentage guidelines (if
using ConstraintLayout) or align-to-right (if using RelativeLayout). This is
unfortunate, because the data items themselves work perfectly with ConstraintLayout
percentage guidelines, useful for aligning data into columns. In our case
we want the subsection header row items to show labels for those columns,
but due to this issue the header row layout directives are ignored, causing
(severe) misalignment.
Even using ancient RelativeLayout is problematic as it also ignores directive
to align to parent right edge -- the workaround for now is to use RelativeLayout
and progressively lay items out left to right, but this puts us back in old-school
dpi level territory, which was eliminated when ConstraintLayout percentages
were introduced.
The image attached below demonstrates the same ConstraintLayout .xml (using percentage guidelines)
![simplerecyclerview_header_rows_pull_left_not_expanding](https://user-images.githubusercontent.com/31003670/40043968-ed41ac74-581d-11e8-8c96-8c34186d9c0d.png)
when used standalone vs. when added via SimpleRecylerView
"SimpleSectionHeaderProvider"
(note that the data items themselves successfully use ConstraintLayout percentage
guidelines to arrange data in columns, but the header rows ignore those directives)
Not doing anything fancy, should be similar to the bundled demo app (in kotlin) e.g.
The text was updated successfully, but these errors were encountered: