-1

I want to implement an Horizontal ScrollView for dinamically show a News section like above:

enter image description here

The list will be populated dinamically via JSON async request. A simple position indicator (the circles) helps users to navigate trough the news.

I cannot use ViewPager, because the scroll will be a small section of a single activity.

How can I implement it (also using adapters)?

Paolo A.
  • 43
  • 7
  • There are lot of examples online..http://stackoverflow.com/questions/20586619/android-viewpager-with-bottom-dots http://stackoverflow.com/questions/20866201/dot-instead-of-swipe-tab – Dhinakaran Thennarasu Dec 02 '15 at 08:57
  • use viewpager with pagerIndicator instead of HorizontalScrollView – Rajesh Dec 02 '15 at 09:00
  • Yes, examples about ViewPager but i don't know how to apply them to an HorizzontalScrollView... – Paolo A. Dec 02 '15 at 09:06
  • Survivor, I can't because i need a news section INSIDE A PAGE. That's the problem... Below the ScrollView i've got some fixed content. I need to scroll ONLY a small section in the page... – Paolo A. Dec 02 '15 at 09:18
  • Adapters are made to populate lists if you want horizontal scroll, then you could rotate a listview, or just MAKE IT, whats the problem? just put the scrollview and fill it with your news. – Nanoc Dec 02 '15 at 09:29
  • The problem? Bottom Dots indicators! – Paolo A. Dec 02 '15 at 09:32
  • Check this [link](http://androhub.com/android-image-slider-using-viewpager/). – Surender Kumar Dec 02 '15 at 09:38

1 Answers1

0

Using the below library, You can implement dynamically us you can implement in ListView :

https://github.com/ongakuer/CircleIndicator

Mayur Sakhiya
  • 326
  • 2
  • 14