android - Calculate page width in a PagerAdapter -


Gallery view is deprecated as

, I find a solution to apply a horizontal list with different views (liner layouts) I am trying.

The first option was to use the horizontal scalveview, but I have to generate all the views by code and all the views are stored in memory.

Another option is to use Viewpager. I need to implement the custom pager adapter and override the "getPageWidth" method to return the value between 0.0f and 1.0f

Thanks.


Comments