# Switch, Progress and Pull to Refresh

DevFeed: [Switch, Progress and Pull to Refresh](<https://devfeed.tech/articles/switch-progress-and-pull-to-refresh-19542.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/switch-progress-pull/>)

Author: Shai Almog

Published: 2018-10-10T00:00:00Z

Content type: release

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [ui](<https://devfeed.tech/topics/ui.md>), [Android](<https://devfeed.tech/topics/android.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Material Design](<https://devfeed.tech/topics/material-design.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [ios](<https://devfeed.tech/tags/ios.md>), [material-design](<https://devfeed.tech/tags/material-design.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This article describes updates to Codename One's switch, pull-to-refresh, and InfiniteProgress components. It introduces a new switch class with theme and CSS customization, while a new material-design progress behavior is available experimentally and may cause breakage.

## Source excerpt

Some of our older components were developed years ago. As Android and iOS slowly converged their UI paradigms we got stuck supporting odd/outdated functionality as designs shifted. Three great examples are pull to refresh, OnOffSwitch and the InfiniteProgress features. OnOffSwitch contained labels both in iOS & Android. On Android it was literally a button that was moved back and forth. Today both OS's use a simple switch graphic. When we developed the original component we didn't have the same level of graphic drawing capability that we have today, that made the design of the iOS version even harder.