serianon / Kappa

Yes, it's yet another scrum planning poker app!
GNU General Public License v3.0
1 stars 1 forks source link

Autosizing TextView buggy #1

Open serianon opened 5 years ago

serianon commented 5 years ago

The values of the cards (e.g. 1, 2, 3, 5...) are textviews using autosizing, so that on every device configuration the numbers are as big as possible while still fitting in the bounds of the card.

Both the single-card-view and the overview use the same card-layout-source, which makes it impossible to use a static sp-value for the textsize (since overview-cards are less than a third of the size of a single-card).

I tried some "hacks" but they are not working or at least not better than status quo. This is bugging me, because it's a central feature, and I kind of need the autosizing-textviews of android, since own solutions might be ridiculously difficult for such a minor design-issue...

serianon commented 5 years ago

As of 1.0.0, the text-sizes are handled hardcoded in the fragments - once for the recycler-view and once for the viewpager. That's pretty ugly but it works for now. I hope being able to use some sort of autosizing-textview in the future (that works...)