Back to project page diagnostic-tool.
The source code is released under:
Copyright (c) 2014 Ford Motor Company All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project diagnostic-tool listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.openxc.openxcdiagnostic.diagnostic.output; //w w w . j a v a2 s . c om import java.util.ArrayList; import com.openxc.openxcdiagnostic.R; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; public class TableAdapter extends ArrayAdapter<OutputRow> { private ArrayList<OutputRow> mRows; public TableAdapter(Context context, ArrayList<OutputRow> rows) { super(context, R.layout.diagoutputrow, rows); mRows = rows; } @Override public View getView(int position, View convertView, ViewGroup parent) { return mRows.get(position).getView(); } public void refresh(ArrayList<OutputRow> rows) { mRows = rows; notifyDataSetChanged(); } }