Litho: How to use material design with Litho?

Created on 19 Dec 2018  路  1Comment  路  Source: facebook/litho

I am new to Litho and I was wondering if we need to create all views from scratch or is it possible to leverage the existing material components available in Android? Won't it be way too time consuming to build everything from scratch such as the app bar, buttons, etc.?

Most helpful comment

You can use mountSpec to create the litho view for those widgets.
For App bar, I suggest you could use conventional xml approach to do so. For the rest part of the page, you may use litho view to do the layout.

>All comments

You can use mountSpec to create the litho view for those widgets.
For App bar, I suggest you could use conventional xml approach to do so. For the rest part of the page, you may use litho view to do the layout.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agrosner picture agrosner  路  8Comments

ersin-ertan picture ersin-ertan  路  7Comments

sjthn picture sjthn  路  4Comments

Drewbi picture Drewbi  路  3Comments

pavlospt picture pavlospt  路  5Comments