Android - Obter altura do item do ListView?
Existe uma maneira de obter a altura do ListViewItem no código, quando não há itens reais na lista?
Layout do meu ListViewItem:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight">
...
</LinearLayout>
Eu tentei obtê-lo usando o Inflater:
View convertView = LayoutInflater.from( this )
.inflate( R.layout.mail_list_row, null );
int itemHeight = convertView.getHeight();
Mas é retorno 0;
Obrigado!