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
ftpclient
org.apache.commons.net.ftp
package 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
scrollview
can have 1 children, can have following layout structure, example:scrollview
-> verticallinearlayout
id =container
. - add needed
imageviews
container
callingaddview
method.
Comments
Post a Comment