Why are we doing this?
Currently the article title is limited to a line length of 3 lines and is truncated thereafter. We want to allow readers to view the entire article title even when it is extremely long.
Proposed solution
The Android Support library v26 introduces new functionality into the TextView that allows it to automatically reduce the font size to fit within its given size. Let's make use of this functionality for the TextView that we use to display the page title. Currently we limit the line length of the title to three lines instead.
~~https://developer.android.com/guide/topics/ui/look-and-feel/autosizing-textview.html~~
Based on exploration of the autosizing textView being insufficient for our goal (showing the complete title of pages), the new solution is simply to remove the 3-line height limit.
UX considerations/concerns:
- Testing for unintended truncation across different languages and non-latin fonts
- Imposing a minimum font size of 24sp so that article titles are not shrunken to a non-legible size, and maintains hierarchical prominence over other text.
QA required
- Please check a couple of articles with long titles in EN, DE, RU, ZH, AR, HE to chek that they are shown in their entirety.
- https://en.wikipedia.org/wiki/Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon
- Lindsay Hassett with the Australian cricket team in England in 1948
- 中国人民政治协商会议第十三届全国委员会委员名单
- मण्डलशंकरपुर गाँव, फर्रुखाबाद (फर्रुखाबाद)
- Donaudampfschiffahrtselektrizitätenhauptbetriebswerkbauunterbeamtengesellschaft










