Hi, Unfortunately, the layout is completely broken. My text fields don't > appear and the list seems to cover everything. So, questions: > > 1. I see various match* tweaks in contrib.LpTweaks, but nothing I do > makes them work. In particular: > > w[TextView] <~ wire(nearestPath) <~ matchWidth(), > It seems to want me to specify a widget type somewhere, but I'm not > sure where or which to provide (the containing layout? The type on > which the tweak is applied?) >
Just use `matchWidth`, not `matchWidth()` — neither of them takes any parameters: https://github.com/macroid/macroid/blob/master/src/main/scala/macroid/contrib/ExtraTweaks.scala#L75 > 2. I'm trying to achieve this result: > > > http://stackoverflow.com/questions/13888574/sticky-footer-below-listview-in-android-layout > > <http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F13888574%2Fsticky-footer-below-listview-in-android-layout&sa=D&sntz=1&usg=AFQjCNHpXrWsrK6G6cysjVvTq97olU-K5w> > > To add weight, you can use lp[LinearLayout](MATCH_PARENT, 0, 1.0f). I suspect that this will also fix your first problem (that the list covers everything). As for the gravity, something like Tweak[LinearLayout](_.setGravity(Gravity.CENTER_HORIZONTAL)) should work. Nick -- You received this message because you are subscribed to the Google Groups "scala-on-android" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
