As with infants, you want to transition activities as you go into naptime or bedtime. Provide the most stimulation when they've woken up and had a meal, and the least stimulation as you get closer to sleepy-time. As stimulation decreases, you're less likely to have a battle over bedtime.
After all, if your little one is busy playing a game on your phone at around the time he needs to sleep, he's going to have a tough time letting go and might even throw a tantrum.
You might therefore want to divide your toddler's activities to those that require the most energy to those that need the least energy and arrange those activities to fit into his circadian rhythm.