How to set data for a Gallery control?

How to set data for a Gallery control?


A. Define in XML file
B. Use function setGalleryAdapter()
C. Use function addView()
D. b or c
E. None of above


Answer: B


Learn More :