blonsky95 / DigiCoachAndroid

0 stars 0 forks source link

UI - more touches #90

Closed blonsky95 closed 4 years ago

blonsky95 commented 4 years ago

Touches concerning colour and login and homepage specially + fragments that slide up

blonsky95 commented 4 years ago

login has already been more or less implemented, next thing is home

blonsky95 commented 4 years ago

modernise text fields with material components!!!!!!!

blonsky95 commented 4 years ago

ok ready to do this with luv - making it nice and cute

blonsky95 commented 4 years ago

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

blonsky95 commented 4 years ago

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>

blonsky95 commented 4 years ago

doing calendar

blonsky95 commented 4 years ago

adding a span to customize the text colour when there is decorators

`class DatesWithDecorator(var dates: ArrayList, var drawable: Drawable) : DayViewDecorator {

    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);

blonsky95 commented 4 years ago

On daycreator

blonsky95 commented 4 years ago

Just need final touches with guv guv

blonsky95 commented 4 years ago

latest ui updates: