I need to create paged GridView, where each page contains some elements from the list, for example, launch applications to show installed applications. GridViewcontains only elements on which there is enough space on the screen to be shown and other applications are added in the GridViewnext Fragment. I found many examples explaining how to implement this, for example http://shrikantsonarblogs.blogspot.com/2013/07/gridview-with-viewpager-like-android.html or Image Display as a View pager grid , but in all of these In the examples, the number of rows and columns is a fixed value. Is there a way to make these values “dynamic” by dividing the sizes ViewPagerby the sizes of the childView (assuming they are the same size, but should I measure the first)?
If what I want to achieve is unclear, an example is the CyanogenMod Trebuchet launcher application box, with the only difference being that I do not need to display installed applications.
source
share