Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In the Google Play app, how is the ViewGroup showing the application top lists implemented?

The Google Play application presents the top lists of different categories in a GridView-like way (screenshot). I'm pretty sure that it's not a standard GridView, since when I scroll all the way to the bottom, it shows a screen-wide "Loading" item, which is not possible with standard GridViews to my knowledge.

Can I find the code for this ViewGroup somewhere? If not what would be the best way to implement such a ViewGroup? I was thinking about handling this with ListView, but it'd require a quite messy adapter that puts multiple list-items in a single row, according to the screen-width available.

like image 329
Zsombor Erdődy-Nagy Avatar asked May 21 '12 05:05

Zsombor Erdődy-Nagy


People also ask

What is the use of viewgroup in Android?

For example, Linear Layout is the ViewGroup that contains a UI controls like button, textview, etc. and other layouts also. Following are the commonly used ViewGroup subclasses in android applications. Both View and ViewGroup subclasses together will play a key role to create a layouts in android applications.

What is a view in Android with example?

The View is a base class for all UI components in android. For example, the EditText class is used to accept the input from users in android apps, which is a subclass of View. Following are the some of common View subclasses that will be used in android applications. Like these we have many View subclasses available in android.

How do I view app statistics on Google Play?

View app statistics You can view statistics for individual apps using the Play Console web version or app. Find and review your app's data Available reports There are several pages in Play Console where you can review your app's installs, uninstalls, ratings, revenue, and crashes data.

How do I view my app on Google Play console?

For more information, go to Filters on Google Play. Sign in to Play Console. Under your app’s name, click View on Google Play. How can my app get featured on Google Play?


1 Answers

To answer my own question:

I disassembled the Google Play app and found that they're using simple ListView here, with a BucketListAdapter. This adapter presents the list-elements in a GridView-like way, splitting them to columns. This way they could also use list footers and headers.

I've rolled my own implementation of this, if anyone's interested, it can be found here: https://github.com/rzsombor/bucket-list-adapter. It's still working in progress stuff however.

like image 197
Zsombor Erdődy-Nagy Avatar answered Oct 07 '22 10:10

Zsombor Erdődy-Nagy