-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Getting started with Macroid and I really like it, but I'm having
trouble with what should be a simple layout:
contentView = getUi {
l[LinearLayout](
w[TextView] <~ wire(nearestPath),
w[TextView] <~ wire(nearestIntersection),
w[ListView] <~ wire(nearestPoints) <~
adapter(nearestPointsAdapter) <~ lp[LinearLayout](MATCH_PARENT, 0),
l[LinearLayout](
w[TextView] <~ wire(direction),
w[TextView] <~ wire(speed),
w[TextView] <~ wire(altitude),
w[TextView] <~ wire(accuracy),
w[TextView] <~ wire(provider)
)
) <~ vertical
}
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?)
[error]
C:\Users\nolan\Projects\Hermes\src\main\scala\android\ui.scala:134: not
enough arguments for method apply: (w: macroid.contrib.LpTweaks.W)Unit
in class
Tweak.
[error] Unspecified value parameter w.
[error] w[TextView] <~ wire(nearestPath) <~ matchWidth(),
[error] ^
[error] one error found
[
2. I'm trying to achieve this result:
http://stackoverflow.com/questions/13888574/sticky-footer-below-listview-in-android-layout
which requires setting gravity and weight. Any tips on how to
translate this to Macroid?
Thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQIcBAEBAgAGBQJT/5cgAAoJEAIF+g7+rYRXnpgP+wVTa5S4dQJOtxLu3Cpbv7I5
2SWumQ2uc84VKllBgNCFHIsU44nqwx3Iy6ophUem+owFGgkNdQd5YsKWw/Oewyld
Q676sP+RahacuqlJKfiewbhP8Jyzs2C7zVfsXyBehGrWFPpCebiWX655CpLYsmpg
3x0pTcTRt1lj0vZa+L088scxBQvgznKwmtf1PeSDyA9jUKrv2Mf1EK2SOPoRrfQn
JDj2NnDP+gSCGTHe0mUizy6ovinW5cTSfkcm0FaKAc4O9FEIHBNUHRF+xGxdfDrz
xk3Uwqzu3Ni8i9/8C1BVZOEvNdsoTFiDnUnqyAh196wSaMv3uA272nS/bE2f+guT
6nb4t9WhITLqlrTacboQD42kkiAqiZNE1ubJAajkGwTLk7ZPmOuC8wPgn1q4eT50
hK347PM4qawtYUG/h+nhkpWPVHcLVlUXFt7mWwiHph18mIXweJjAkc98LhBDhrLt
gSkWFk3ZVD+DcLE8dsDorEGiOI6ypjBGQ1lwwBDRsCrRBew8HUgrQiGFML1ERtjM
HNs04H7V6i4gbv+SCTPJn33BR3672UwalAHJTZH/j1VXnvG/wnufT4PyKJbGJy+G
I/r3q3oxne5J/VV8KNADEJuWxfRnbmVOIke8WPlog2XPhZN8xh/njjMrb1fx7iKM
ou/fGz09M2vYd+e+dAYe
=M6dh
-----END PGP SIGNATURE-----
--
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.