Android listview should have same imageview size -
i want know whats best approach imageview size in listview. if want maintain imageview same irrespective of aspect ratio/image pixel,size. whatsapp does.
what best possible solution?
options
set parameters in layout xml file. programatically. make custom image fixed size , utilize in layout
i recommend using layout(option 1) can scale photo without calculation screen, through setting the adjustviewbounds true can still preserve aspect ration.
as documentation it:
set true if want imageview adjust bounds preserve aspect ratio of drawable.
android android-listview
No comments:
Post a Comment