how to set Fixed no of Rows shows in ListView ? i want to set 5 Rows only show in Listview not all Rows. so how can i achive this Goal?
yes, you can achieve via adapter class, Try with following code in your adapter class.
public int getCount() {
return 5;
}
If you set this, the adapter class load only 5 items.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With