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:

  1. use ftpclient org.apache.commons.net.ftp package download file ftp. example snippet can found here
  2. once you've got input stream, use bitmapfactory.decodestream convert bitmap
  3. after can use setimagebitmap method set source imageview.
  4. since scrollview can have 1 children, can have following layout structure, example: scrollview -> vertical linearlayout id = container.
  5. add needed imageviews container calling addview method.

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -