From:
http://developer.android.com/resources/tutorials/views/hello-gridview.html, in ImageAdapter class:
imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
Look at the new GridView.LayoutParams part. It seems LayoutParams is inner static class of GridView class, but according to android docs, GridView class’ full path is android.widget.GridView, while LayoutParams is android.widget.AbsListView.LayoutParams. So LayoutParams is not inner static class of GridView.
How could this possible?
References:
GridView class from android doc
LayoutParams class from android doc
AbsListView ist the base class of GridView