Back to project page NoiseBridge_General.
The source code is released under:
GPLv3.txt
If you think the Android project NoiseBridge_General 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.noysbrij.fragments; /*from w ww. jav a 2s. c om*/ import android.content.*; import android.util.*; import android.view.*; import android.widget.*; import com.noysbrij.noisebridgeGeneral.*; import java.util.*; import com.noysbrij.noisebridgeGeneral.Tickets; import com.noysbrij.noisebridgeGeneral.Ticket; public class TicketsArrayAdapter extends ArrayAdapter<Ticket> { private final String TAG = getClass().getSimpleName(); private ArrayList<Ticket> tickets; private Context context; public TicketsArrayAdapter(Context context, int textViewResourceId, ArrayList<Ticket> tickets) { super(context, textViewResourceId, tickets); this.tickets = tickets; this.context = context; Log.e(TAG, "ticketsarray init"); } @Override public View getView(int position, View convertView, ViewGroup parent) { View v = convertView; // Log.e(TAG, "steering textbooks for parent: " + parent.toString()); if (v == null) { LayoutInflater vi = (LayoutInflater)this.context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); v = vi.inflate(R.layout.row, null); } Ticket o = tickets.get(position); if (o != null) { TextView tt = (TextView) v.findViewById(R.id.toptext); TextView bt = (TextView) v.findViewById(R.id.bottomtext); if (tt != null) { tt.setText(context.getString(R.string.complexity_label) + o.complexity); } if (bt != null) { bt.setText(context.getString(R.string.created_at_label) + o.created_at); } } return v; } }