Saturday, January 28, 2012

Re: [android-developers] Dynamically populating LinearLayout in an AppWidget

Oh well I gave it a shot :D

Anyway, glad you found the problem/solution at the end ;)


Cheers,
Yuvi

On Sat, Jan 28, 2012 at 7:22 AM, TreKing <trekingapp@gmail.com> wrote:
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



--
YuviDroid
Check out Launch-X (a widget to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

--
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

No comments:

Post a Comment