It looks like an internal static class in Java, but obviously it’s not (I don’t understand, how is this possible?)
•
Java
From:
imageView.setLayoutParams(new GridView.LayoutParams(85,85));
View the new GridView Layoutparams section It seems that layoutparams is the internal static class of the GridView class, but according to the Android document, the full path of the GridView class is Android widget. GridView, and layoutparams is Android widget. AbsListView. LayoutParams. Therefore, layoutparams is not an internal static class of GridView
How is that possible?
Reference: GridView class from Android doc layoutparams class from Android doc
Solution
Abslistview is the base class of GridView
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码