Is it possible to Adjust height of listview with respect to screen size when it is used with adapter

后端 未结 2 1709
太阳男子
太阳男子 2021-01-16 18:47

Consider a listview contain 2 images and am using an adapter to make a sequence of them. I wish to set the height of an image as 1/3 of the screen size. Is that possible? If

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-16 19:23

    Yes, it is possible to set the height. To know how, check the answers to this question: How to Get Device Height and Width at Runtime?

提交回复
热议问题