LayoutInflater ignoring parameters?

Try using inflate(R.layout.genre_cell, row, false) instead of inflate(R.layout.genre_cell, null) and see if that helps. Sometimes, the inflation works better when it knows what sort of parent the inflated view will go into.


Well after nearly two days I have found the culprit :

As I actually suspected the new LayoutParams() is a problem if you already have "formatted" your View in the XML declaration... So after leaving the new LayoutParams() out of the equation my Table would be shown just fine...

So just use :

grid.addView(row);

Tags:

Android