Closed blonsky95 closed 4 years ago
login has already been more or less implemented, next thing is home
modernise text fields with material components!!!!!!!
ok ready to do this with luv - making it nice and cute
exercise creator done, and front page done
next bottom nav bar https://material.io/develop/android/components/bottom-navigation and then continue through exercise stuff
Nav bar done I had to add a dimens I want overriden (for the height of the bottom nav bar, as increasing icon size clustered the text and the icon):
In dimens.xml:
<dimen name="design_bottom_navigation_height" tools:override="true">60dp</dimen>
doing calendar
adding a span to customize the text colour when there is decorators
`class DatesWithDecorator(var dates: ArrayList
override fun shouldDecorate(day: CalendarDay): Boolean {
return dates.contains(day)
}
override fun decorate(view: DayViewFacade) {
view.setBackgroundDrawable(drawable)
view.addSpan(ForegroundColorSpan(Color.WHITE))
}
}`
Spans are used to only modify a string or part of it, so as compared to changing text color of a textview which will change everything in it. If you have a spannable string then you can do something like this and modify them:
SpannableString string = new SpannableString("Text with relative size span"); string.setSpan(new RelativeSizeSpan(1.5f), 10, 24, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
On daycreator
Just need final touches with guv guv
latest ui updates:
Touches concerning colour and login and homepage specially + fragments that slide up