Android: Customize list view, Table view in adapter
问题 I created a table view in list view adapter programmatically. For that first i created a Adapter layout as : <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/black" android:stretchColumns="*" android:id="@+id/tablelayout" > </ableLayout> Then what I have done in the adapter is: public class DemoAdapter extends ArrayAdapter