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

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

collision detection - C++ library for mesh to mesh intersection: what is available? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -