Re: [android-developers] Dynamically populating LinearLayout in an AppWidget
On Fri, Jan 27, 2012 at 6:00 PM, YuviDroid <yuvidroid@gmail.com> wrote:
I think I had a similar problem some time ago...unfortunately I don't remember exactly how I solved. However I think I used RemoteViews.removeAllViews().
Thanks. That didn't work (actually led to the default "could not load widget" error layout), but playing around with it a bit more I finally found the problem.
As expected, I was missing something obvious: my "linear_layout_entry" layout that I have been "inflating" had its height set to match_parent ... So the first one was filling the parent and leaving no room for the rest ... I just couldn't tell due to the backgrounds being the same ...
*face palm*
Man I love posting to the group only to realize I'm being an idiot.
Thanks for the help!
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home