Back to project page codemap.
The source code is released under:
GNU General Public License
If you think the Android project codemap 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.hdweiss.codemap.view.workspace.outline; /*w w w . jav a 2 s .co m*/ import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import com.hdweiss.codemap.data.CscopeEntry; public class CscopeEntryAdapter extends ArrayAdapter<CscopeEntry> { public CscopeEntryAdapter(Context context) { super(context, android.R.layout.simple_list_item_1); } @Override public View getView(int position, View convertView, ViewGroup parent) { TextView listItem = (TextView) convertView; if (convertView == null) listItem = new TextView(getContext()); CscopeEntry item = getItem(position); listItem.setText(item.name); listItem.setTextSize(18); listItem.setPadding(5, 5, 5, 5); return listItem; } }