I followed this tutorial, for now it’s working nice, but i only have a problem, i need to center vertically the “Title” textview, when “Detail” textview text it’s null or empty, something like this. I tried this (http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/), and it works, but the problem it’s that if i use setVisibility(View.GONE), all the details from all the items, dissapear, and just title get centered., any help appreciated, thanks
EDIT: Fixed this way
String detailView = String.valueOf(rowData.mDetail);
detail.setText(detailView);
detail.setVisibility(detailView.equals("null") ? View.GONE : View.VISIBLE);
Remember to setVisible(View.VISIBLE) when you are recycling a view.
Hope this helps