I am extracting an image from a URI and displaying it in Imageview.
I need to resize the image from the URI to fit the size of the Imageview.
Please help me. How can i do this?
thank
imageViewObject.setScaleType(ImageView.ScaleType.CENTER_INSIDE);
Or, if you are configuring ImageViewfrom an XML file, you can use this property:
ImageView
android:scaleType="centerInside"
Source: https://habr.com/ru/post/1750843/More articles:What is the difference between getiterator () and iter () relative to lxml - pythonHow to get QueryString from href? - securityType Requirements for std :: list - c ++Make MessageBox stay on top of other windows - windowsJava Indentation - emacsCall a Django renderer in memory without any files from strings? - pythonrails check nested attributes - validationFailed to create File object for file in Jar - javaURI does not require hierarchical use of the File class for a method - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1750848/how-to-convert-a-string-of-keyvalue-pairs-to-hashtable-or-dictionary-or&usg=ALkJrhjXvie9D3ijijNxTZvh5-tA-tXTzAAll Articles