Whenever I open the odk form on my phone, all the headings (text) appear on the far-left side of the phone while I want the text to appear in the centre of the phone. Is there a way to align text at the middle of the ODK?
U̶n̶f̶o̶r̶t̶u̶n̶a̶t̶e̶l̶y̶,̶ ̶I̶ ̶d̶o̶n̶'̶t̶ ̶t̶h̶i̶n̶k̶ ̶t̶h̶a̶t̶ ̶i̶s̶ ̶p̶o̶s̶s̶i̶b̶l̶e̶.̶ [EDIT: see @Grzesiek2010 's answer below]
The available styling options are described in Form Styling — ODK Docs.
It is possible. Here is a sample form:
centerText.xlsx (6.1 KB)
However there are some limitations:
- we don't support styling groups: Can't style group names · Issue #3433 · getodk/collect · GitHub
- the centered text will be centered horizontally but not vertically (it's more a bug in one of Android's classes but we can handle it so I'll try to fix the bug soon)
Edit: I created a pull request to fix that extra space which is added when centering is used:
Thanks for sharing a solution, but it seems that it doesnt work with notes? is there a specific setting to style notes?
We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add a real picture as your avatar because it helps build community!
It should work with notes as well:
what version of ODK Collect are you using? Could you attach your form?