package com.mick88.dittimetable.event_details;

import java.util.List;


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

public class KeyValueAdapter extends ArrayAdapter<KeyValue>
{

	public KeyValueAdapter(Context context, List<KeyValue> objects) {
		super(context, 0, 0, objects);
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public View getView(int position, View convertView, ViewGroup parent)
	{
		LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View view = inflater.inflate(android.R.layout.two_line_list_item, parent, false);
		
		TextView tvName, tvValue;
		
		tvName = (TextView) view.findViewById(android.R.id.text1);
		tvValue = (TextView) view.findViewById(android.R.id.text2);
		
		tvName.setText(getItem(position).key);
		tvValue.setText(getItem(position).value);
				
		return view;
	}
	
}

@@ -65,16 +65,70 @@
 .List;%0A%0A
+import com.mick88.dittimetable.utils.FontApplicator;%0A%0A
 %0Aimport 
@@ -376,17 +376,53 @@
 alue%3E%0A%7B%0A
+%09FontApplicator %0A%09%09fontApplicator;%0A%09
 %0A
-
 %09public 
@@ -519,47 +519,90 @@
 ;%0A%09%09
-// TODO Auto-generated constructor stub
+this.fontApplicator = new FontApplicator(context.getAssets(), %22Roboto-Light.ttf%22);
 %0A%09%7D%0A
@@ -976,16 +976,16 @@
 text1);%0A
-
 %09%09tvValu
@@ -1037,24 +1037,61 @@
 .text2);%0A%09%09%0A
+%09%09fontApplicator.applyFont(view);%0A%09%09%0A
 %09%09tvName.set

apply Roboto font