How can I add separating lines between my TableRows that are created programmatically?
问题 I have a TableLayout that is created programmatically in an Android project. I keep adding TableRows as long as there are more rows fetched from the database. Now I want to add separating lines, like a border, between the TableRows. In my other TableLayout that I created statically from XML I used a View as a separator, style with a style.xml. I tried adding a View to the tablelayout like so: View v=new View(this); v.setLayoutParams(new LayoutParams( LayoutParams.FILL_PARENT, LayoutParams