Eclipse issue in android dynamic table

Posted on Updated on

As I discussed in my previous post creating Dynamic TableLayout in Android . Here an issue arises in Eclipse while using TableLayout with layoutParams . Eclipse will  wrongly add the following import

import android.view.ViewGroup.LayoutParams;

In such cases even after executing the program without any errors it wont show any table or any data. It will only  show blank display. So inorder to overcome the issue just replace with the following import.

import android.widget.TableRow.LayoutParams;

After replacing run the project and view the output.

(Wasted several hours because of this silly issue while creating dynamic table in android. Thanks to stackoverflow)

2 thoughts on “Eclipse issue in android dynamic table

    Karthikeyan said:
    December 3, 2012 at 9:46 pm

    Thanks i was about to waste lot of time because of this Table Layout issue….But your post saved me lot of time…Thank U very much.GBU:-)

    http://www.xfire.com/blog/sabinehard/4475506/ said:
    December 7, 2012 at 6:05 am

    I am regular visitor, how are you everybody? This piece of writing
    posted at this web site is in fact good.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s