locked
Listview Height RRS feed

  • Question

  • User378878 posted

    How can I reduce the listview height?

    Friday, October 26, 2018 8:21 AM

Answers

  • User329247 posted

    You can set the height of your list according to content inside List, by just counting total number of values and multiply it with required height. HeightOfYourListView= YourListView.Count * 170 You can replace any number with 170 according to your content height. Hope this may solve your issue.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, October 30, 2018 12:07 PM

All replies

  • User378220 posted

    Depends on the VerticalOptions of the container and the list view itself as well as the HeightRequest of both of the elements.

    Friday, October 26, 2018 9:12 AM
  • User343916 posted

    you can use heightRequest property to reduce the height of the listview

    Friday, October 26, 2018 9:58 AM
  • User329247 posted

    You can set the height of your list according to content inside List, by just counting total number of values and multiply it with required height. HeightOfYourListView= YourListView.Count * 170 You can replace any number with 170 according to your content height. Hope this may solve your issue.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, October 30, 2018 12:07 PM