Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Lalit Maganti
    @tilal6991
    @graknol Excellent
    Only thing I can see is that the DSL result stub is created a lot
    Can we not make that a singleton?
    Sindre Tellevik
    @graknol
    no, because it has to contain a reference to the currentView after the currentView is gone. if that made sense
    Lalit Maganti
    @tilal6991
    Hmmmmm right.
    Sindre Tellevik
    @graknol
    otherwise we could try to somehow store a stack of views
    Lalit Maganti
    @tilal6991
    A bit frustrating that that's the case but I understand.
    Sindre Tellevik
    @graknol
    it's because of anvil's design :/
    but an incredible improvent nontheless!
    Lalit Maganti
    @tilal6991
    Yes definitely.
    Lalit Maganti
    @tilal6991
    Ouch without some sort of editor plugin, constraintlayout will remain XML only
    Will be very difficult to do with Anvil
    Just look at the size of these files
    Sindre Tellevik
    @graknol
    holy
    Lalit Maganti
    @tilal6991
    I just realised - Google are really pushing styles/themes and it's actually not great that Anvil does not support them
    @graknol @zserge ^
    Sindre Tellevik
    @graknol
    yup
    I noticed that when exploring appcompat
    what's worse is that it has to be applied before creating ANY views (ofc), which means it has to be set before calling super. onCreate()
    which means they have to be static
    which probably means that we have to rely on style xml files
    Sindre Tellevik
    @graknol
    @zserge @tilal6991 I just saw the new layout editor, this is baad news for DSL libraries (not like there's any competition)
    it's sweet though
    Lalit Maganti
    @tilal6991
    Having seen https://www.youtube.com/watch?v=csaXml4xtN8 I think that Anvil would do much better to just use the xml function as the main entry point
    For me personally the new XML editing tools I'm convinced to switch back
    Especially ConstraintLayout
    Sindre Tellevik
    @graknol
    me too
    truth is, not that many state changes happen that often
    which anvil was built for
    so there's normally no downside using the new tools
    Lalit Maganti
    @tilal6991
    I think that I'll take a look at reworking Anvil more as a tool for caching updates to views rather than acting as a DSL
    So just the virtual DOM part of react
    Sindre Tellevik
    @graknol
    Yeah, I've been thinking about that too
    Lalit Maganti
    @tilal6991
    @graknol @zserge please take a look at zserge/anvil#70
    Finally finished with exams :)
    Sindre Tellevik
    @graknol
    congratz!
    Serge Zaitsev
    @zserge
    @tilal6991 Great as usual! Strange how typing and a more explicit language syntax make code easier to understand at a glance
    Sindre Tellevik
    @graknol
    right? you would think it would be the other way around
    Serge Zaitsev
    @zserge
    @BenedictP Yeah, I've seen that talk, Anvil is just briefly mentioned there and unfortunately I haven't seen the reasons why they didn't choose to use it.
    Benedict
    @BenedictP
    ok, I'm still working on a mvvm architecture for android with anvil... need to write a little bit down so others can understnad it and add some tests
    Serge Zaitsev
    @zserge
    Great! Feel free to share or ask any questions. Meanwhile myself and Anna try to build a "real" android app using Anvil, which is an MQTT client that uses all support libraries, recycler view, toolbars, nav drawer and other over-complicated heavyweight gifts from google. However it goes better than I initially thought.
    Benedict
    @BenedictP
    wow.... recyclerview now supports drag and swipe via the new ItemTouchHelper. explained really short here: https://youtu.be/LqBlYJTfLP4?t=40m23s (little bit offtopic ;) )
    Benedict
    @BenedictP
    Sindre Tellevik
    @graknol
    finally!
    Basically bansa
    Benedict
    @BenedictP
    my mvvm architecture with anvil is online: https://github.com/BenedictP/NotesMVVM
    over the weekend I'm going to translate the readme (and fix the "uml" picture ;) )