Jetpack Compose Streamlines Android Development

by Tech Mainstream Staff


September 22, 2020


Google and the Google logo are registered trademarks of Google LLC, used with permission.


(Tech Mainstream) Jetpack Compose is Android's newest UI toolkit is three fold combining a programming language, an IDE and a powerful UI framework. Jetpack Compose is a "modern UI toolkit designed to help you quickly and easily build beautiful apps across all Android platforms, with native access to the platform APIs. Bring your app to life with dramatically less code, interactive tools, and intuitive Kotlin APIs."

Essentially Jetpack Compose includes Android Jetpack, which is a suite of libraries that work across all versions of the android platform. Kotlin is now part of Jetpack Compose. The app, Google Home, reduced lines of code by 80% and decreasedNullPointerExceptions by 33% since using Kotlin. Declarative APIs for building UI is another component of Jetpack Compose.

The Jetpack Compose alpha release includes:

  • Animations
  • Constraint Layout
  • Initial A11Y support
  • Input and Gestures
  • Interoperability with Views (start mixing Composable functions in your existing app)
  • Lazy Lists
  • Material UI components
  • Performance optimizations
  • Testing
  • Text and editable Text
  • Theming and Graphics
  • Window management

 

Also added: A number of new capabilities to Android Studio 4.2 canary, in close partnership with the JetBrains Kotlin team, to help you build apps with Compose:

  • Compose Code completion
  • Compose Preview Annotations
  • Deploy individual composables to any device
  • Interactive Compose previews
  • Kotlin compiler plugin for code generation
  • Sample Data API for Compose

TECH IN A SECOND

2-25-21 Google says it’s working to get ‘Hey Google’ working on Wear OS again

2-25-21 Here's a list of the phones that were shipped the most last year. Can you guess which one is on top?

2-25-21 PS5 is again in stock at Target

2-25-21 RTX 3060 Listings Flood U.S. Retailers, With Prices Up to $629

2-24-21 Sony Electronics Launches FX3 Full-Frame Camera for Cinematic Look and Enhanced Operability for Creators

2-24-21 HP is buying gaming accessory brand HyperX for $425 million

2-24-21 Oppo's fancy Find X3 smartphone may have leaked online

2-24-21 Samsung will give you 100 days to try a Galaxy Z Fold 2 or Galaxy Z Flip 5G

2-23-21 iPhone 13 rumors: Apple could be adopting another feature Android has had for years

2-23-21 Samsung now updates Android for longer than Google does

2-23-21 LinkedIn is down so you can’t add anyone to your professional network

2-23-21 Anker beats Apple to market, new iPhone 12 MagSafe-compatible battery pack now available

2-23-21 Huawei’s new $2,800 foldable phone copies Samsung’s Galaxy Fold line

2-23-21 Sony is working on a new PlayStation VR headset for PS5

2-22-21 Perseverance rover beams back images from Mars after historic landing

2-22-21 Samsung's leaked concept videos may show its vision for AR glasses

2-22-21 Microsoft Word is getting text predictions next month

2-22-21 Alexa-enabled printer, Amazon’s first product from Kickstarter-like program Build It, hits preorder goal

2-22-21 3 things Android 12 can do that Android 11 can't

2-22-21 Apple Surpassed Samsung as World's Largest Smartphone Maker in Fourth Quarter

2-22-21 30,000 Macs infected with new Silver Sparrow malware

2-22-21 Samsung begins rolling out potentially life-saving smartwatch update

2-21-21 Samsung Galaxy Tab S7 Lite and A7 Lite tipped for a June launch

2-21-21 Apple Spring event is coming — but when will we see new iPad Pro, iPad mini 6 and AirTags?

2-21-21 WhatsApp to move ahead with privacy update despite backlash

2-21-21 iPhone 12 Pro Max vs. Galaxy S21 Ultra: Apple's and Samsung's luxe phones compared

2-20-21 Perseverance beams back first images of Mars

2-20-21 Samsung's future smartwatch is rumored to use Android, not Tizen

2-20-21 Ranked: Best browsers for privacy

2-20-21 New malware found on 30,000 Macs has security pros stumped

2-20-21 This is our first look at Android 12’s wallpaper-based theming system

2-20-21 Israel’s first university-made nanosatellite launches into space

2-19-21 Apple Updates Platform Security Guide, Says Kernel Extensions Won't Be Supported on Future Apple Silicon Macs

2-19-21 iOS 14.5 is on the way. What we know about a release date and new features

2-19-21 Stacked widgets and a new look for the lock screen may be coming to Android 12

2-18-21 Android 12 might finally solve one of the most annoying smartphone problems

2-18-21 LG Reportedly Assisting Apple on Foldable Display Development

2-18-21 Tim Cook says Apple is working on something that will be even bigger than the iPhone

2-18-21 Apple's M1 Mac Mini falls to an all-time low of $600 on Amazon

2-18-21 Apple TV now available on Chromecast with Google TV

2-18-21 Microsoft’s next major Windows 10 update focuses on improving remote work

2-18-21 Samsung’s One UI 3.1 update brings select Galaxy S21 features to older Samsung phones