In iOS programming I have to implement (or at least if I don’t want the default one…) an method which returns the height of the row. I am probably blind because I can’t find the method where I set the height of the row in a listview in Android.
I have created custom row layouts, so I start to think that I set the height in the parent layout manager in the XML. Can anyone confirm that this is the way to do it? Or is it a method?
Yes, the only way to set the height of the row is to mention it’s dimensions in the xml ,for the list item or you can also set the height of the list item in the getView() method of listView if you have a custom Adapter. There is no listView method as such to define the height of the row.