Nick

Results 127 comments of Nick

Hey, About a month ago I found some time to think about the design of event streams for widgets. I started the work on this branch: https://github.com/macroid/macroid/tree/ft-refactor-concurrency (never mind the...

What would be the syntax? Something like this? ``` scala l[LinearLayout]( implicit l ⇒ w[Button]

Also see [this comment](https://github.com/macroid/macroid/issues/34#issuecomment-52418618) for an alternative idea.

So this is the same as in my first comment, right?

Then you’ll have to wrap your views into a `Seq` — I don’t think it will look very nice :(

I see your point — will have to think about this. Feel free to make a PR with a solution of your own :)

Yeah, I actually avoid using margins, replacing them with padding where possible :) From your suggestions, I think `AttributeSet`s are the way to go, as it will also solve #30....

@dant3 I think we can agree that Android’s `LayoutParams` API itself is a bit of a mess ;)

By the way, how much is it desired to change layout params after layout? If they are only set once, maybe widgets could be wrapped into something like this before...

Sorry for not being elaborate enough. To give an example, if we wanted to add a `Button` to a `LinearLayout`, we would wrap it into ``` scala LP[LinearLayout, Button, LinearLayout.LayoutParams](w[Button],...