You definitely don't need a custom renderer to solve formatting issues; you could create a custom cell with a Label and Entry and use a layout that lets you specify exact widths or Y coordinates for the Entry. A RelativeLayout might help?
Hey, same question here. I really just want a list of labels and entry boxes, all lined up along the center of the screen, but with sections delimited by TableSections. Shouldn't be hard, right? Grids provide all the orientation stuff I want, but not the TableView look and feel (particularly on iOS).
I tried to use StackLayout inside each viewcell, with a fixed width on the entry boxes. That works sorta, but then the UI doesn't scale with different screens.
A good example in XAML would be super appreciated.
Alright, this seems to work. If you place a grid inside each ViewCell, you can be sure they'll all line in the same spot according to the column definitions.
Posts
You definitely don't need a custom renderer to solve formatting issues; you could create a custom cell with a
Label
andEntry
and use a layout that lets you specify exact widths or Y coordinates for theEntry
. ARelativeLayout
might help?Thanks Craig - I had done this, but it has it's own issues as I've just posted in this forum.
Ta
Ross
Hey, same question here. I really just want a list of labels and entry boxes, all lined up along the center of the screen, but with sections delimited by TableSections. Shouldn't be hard, right? Grids provide all the orientation stuff I want, but not the TableView look and feel (particularly on iOS).
I tried to use StackLayout inside each viewcell, with a fixed width on the entry boxes. That works sorta, but then the UI doesn't scale with different screens.
A good example in XAML would be super appreciated.
Alright, this seems to work. If you place a grid inside each ViewCell, you can be sure they'll all line in the same spot according to the column definitions.
Thanks @JeremyHerbison. that works great! Also, if your
Label Text
is too long and is being cut off, you can make another column and useColumnSpan
: