I tried all possibilites LayoutParams to add table row to table layout in CardView. Moreover, the strange thing is that I am able to add textview in relative layout in the same