android - Dynamically add an image view to a ScrollView -
i trying make app dynamically loads images computer imageview on scroll view. want make simillar instagram (with likes). im using ftp download images computer.
i need ideas direct me code.
thank you!
ok, here simple workflow:
- use
ftpclientorg.apache.commons.net.ftppackage download file ftp. example snippet can found here - once you've got input stream, use bitmapfactory.decodestream convert
bitmap - after can use setimagebitmap method set source
imageview. - since
scrollviewcan have 1 children, can have following layout structure, example:scrollview-> verticallinearlayoutid =container. - add needed
imageviewscontainercallingaddviewmethod.
Comments
Post a Comment