d‎ > ‎6‎ > ‎

u

Developer
  • Google’s Play Console now gives developers more data about their apps before and after launch

    Google’s Play Console now gives developers more data about their apps before and after launch

  • Google Firebase gets Fabric integration, better analytics and an alpha program

    Google Firebase gets Fabric integration, better analytics and an alpha program

  • Google’s Instant Apps are now generally available to all Android developers

    Google’s Instant Apps are now generally available to all Android developers

  • Browse more...

Facebook
  • Facebook takes on Twitch with new live-streaming deal for esports

    Facebook takes on Twitch with new live-streaming deal for esports

  • TechCrunch to host a startup competition with Facebook in Nairobi

    TechCrunch to host a startup competition with Facebook in Nairobi

  • Facebook and MLB partner to bring live-streamed games to the social network

    Facebook and MLB partner to bring live-streamed games to the social network

  • Browse more...

open source
  • Open source database developer MariaDB picks up $27M from the EIB

    Open source database developer MariaDB picks up $27M from the EIB

  • Facebook’s fastText library is now optimized for mobile

    Facebook’s fastText library is now optimized for mobile

  • Tracking the explosive growth of open-source software

    Tracking the explosive growth of open-source software

  • Browse more...

F82017
  • Machine intelligence is the future of monetization for Facebook

    Machine intelligence is the future of monetization for Facebook

  • Facebook plans ethics board to monitor its brain-computer interface work

    Facebook plans ethics board to monitor its brain-computer interface work

  • Talking fiber, drones and open-source hardware with Facebook’s Yael Maguire

    Talking fiber, drones and open-source hardware with Facebook’s Yael Maguire

  • Browse more...

Facebook expands its open-source portfolio with new UI framework for Android

Posted Apr 18, 2017 by Frederic Lardinois (@fredericl)
  • 0

    SHARES
Next Story

Facebook launches React VR, a new JavaScript framework for building basic VR apps

At its F8 developer conference, Facebook today announced that it is open-sourcing Litho, a declarative framework for building efficient user interfaces on Android. Litho is the same framework Facebook uses internally to build its own Android app, which is currently being used by more than a billion people every month.

The company first talked about this new framework last October. At the time, the company noted that the issue it was trying to solve was mostly about building a more performant framework for displaying the Facebook News Feed, which tends to be more complex than the scrollable lists for which the standard Android tools are optimized. Those lists tend to use Android’s RecyclerView, but in order to get to the 60 frames per second that modern device screens now typically support (and which users expect), the RecyclerView simply isn’t fast enough for more complex applications.

“As UIs become increasingly sophisticated, it gets harder to complete all the rendering work that needs to get done in this time frame,” Facebook’s Pasquale Anatriello and Marco Cova write in today’s announcement. “This proves to be especially challenging with dynamic scrolling surfaces, as new pieces of UI are constantly being introduced on screen.”

Litho’s programmers used some of what Facebook learned from React and built a new system that improves scroll performance up to 35 percent. It does that, in part, by breaking down complex views like the News Feed into smaller components (think text, images and videos) that can then be rendered incrementally. It also can take some of those smaller pieces and recycle them without having to keep multiple copies in memory.

As Facebook engineering manager Lucas Rocha and Facebook engineer Emil Sjolander told me earlier this week, it’s worth noting that while this focus on feeds may solve Facebook’s problems (but isn’t really applicable to other apps), many of the most popular apps today are indeed built around the idea of a feed. Now that it’s open source, other developers outside of Facebook may also be able to implement some of the idea here for other problems, but the team itself is mostly focused on optimizing the product for the use cases Facebook itself sees.

Litho is now available on GitHub. Facebook is also making a number of tutorials and technical deep dives available on the project’s homepage.

  • 0

    SHARES
Advertisement Advertisement

Crunchbase

  • React

    • Description React is a JavaScript library for creating user interfaces by Facebook and Instagram.
    • Website https://code.facebook.com/projects/176988925806765/react/
    • Full profile for React

Newsletter Subscriptions

Latest Crunch Report

  • Symphony Messaging App Joins the Unicorn Club | Crunch Report

    Symphony Messaging App Joins the Unicorn Club | Crunch Report

Watch More Episodes
  • open source
  • Facebook
  • F82017
  • Developer
  • Popular Posts

    #auto

    Subpages (2): j q
    Comments