I have a ListView with 2 options. I have implemented this in a helper class with this code:
public void DrawAreas() {
ListView areaView = (ListView) _activity.findViewById(R.id.area_list);
ArrayAdapter<TdcArea> areas = new ArrayAdapter<TdcArea>(_activity.getApplicationContext(),
android.R.layout.simple_list_item_1,
_system.getAreas()) {
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View view = super.getView(position, convertView, parent);
TextView text = (TextView) view.findViewById(android.R.id.text1);
text.setTextColor(Color.BLACK);
return view;
}
};
areaView.setAdapter(areas);
//areaView.setOnItemClickListener()
}
That works, however, I want to place a ">" aligned to the right of each item, showing that the item is clickable and after clicked, another page will be shown.
How to draw that ">" to the right?
Regards Jaime