Android Open Source - dbpendler Edit Connection Adapter

From Project

Back to project page dbpendler.


The source code is released under:

Copyright 2013 Marcus Schiesser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...

If you think the Android project dbpendler listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.marcusschiesser.dbpendler.client.adapters;
//w  w w  .ja  va 2  s .c  o  m
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import de.marcusschiesser.dbpendler.common.vo.ConnectionVO;

public final class EditConnectionAdapter extends ArrayAdapter<ConnectionVO> {
  public EditConnectionAdapter(Context context, int textViewResourceId,
      ConnectionVO[] result) {
    super(context, textViewResourceId, result);

  public View getView(int position, View convertView, ViewGroup parent) {
    View textView = super.getView(position, convertView, parent);
    ConnectionVO connection = getItem(position);
    String formated = String.format("%tR - %tR", connection.getStartTime(), connection.getDestinationTime());
    return textView;

Java Source Code List