android - Need to stretch TextView spans to fill whole view -


is there solution stretch text spans parent bounds , take similar amount of space each one? desired result:

desired

i have now:

enter image description here

p.s. trying use spans draw week (may try month later) because page drawing slow 365+ textviews each day.

since didn't post of code, don't know how achieve layout.

but if want customize own calendar view instead of provided calendarview component of native android, may use gridview, displays items in two-dimensional, scrollable grid. grid items automatically inserted layout using listadapter.

this absolutely solve alignment issue of textview, may take @ sample of using gridview here: grid view.

also may refer blog use gridview create custom calendar: android customization: how build ui component want, java native android, xamarin, they're quite similar.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -