GridView.LayoutParams does not exist, Android code breaks

I follow the instructions of HelloWorld for Android, but when I do the GridView exercise (http://developer.android.com/resources/tutorials/views/hello-gridview.html)

I found that if I comment on the line: imageView.setLayoutParams (new GridView.LayoutParams (85, 85));

Then everything works. I did some research and found that GridView.LayoutParams does not exist. Am I doing something wrong? Is the tutorial interrupted?

+3
source share
4 answers

I did some research and found that GridView.LayoutParams does not exist.

? GridView.LayoutParams . LayoutParams - , ViewGroup, GridView.

Edit:

, , , , LayoutParams GridView. AbsListView.LayoutParams.

+6

GridView.LayoutParams AbsListView.LayoutParams, .

+5

, , , GridView.LayoutParam AbsListView.LayoutParam, GridView AbsListView.

0

GridView ViewGroup, ViewGroup, LayoutParams. , ?

0

Source: https://habr.com/ru/post/1794235/


All Articles