On Mon, Jul 5, 2010 at 1:14 PM, samspade79 <[email protected]> wrote:
> I have a ListView created programmatically and each view is a
> TableLayout.
>
> I am trying to get the Tables to expand to 100% of the list view, but
> it does not matter what type of layout params I set on the TableLayout
> I get a ClassCastException every time. Ie, I've tried
> TableLayout.LayoutParams, LinearLayout.LayoutParams,
> FrameLayout.LayoutParams, etc, all of them.
>
> Any advice on what I'm doing wrong ?

Treat it as an object temporarily. Use your debugger or
android.util.Log to dump out what class it really is.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to