GridView.LayoutParams does not exist, Android code breaks -


i'm following along helloworld tutorials android when gridview exercise (http://developer.android.com/resources/tutorials/views/hello-gridview.html)

i found if comment out line: imageview.setlayoutparams(new gridview.layoutparams(85, 85));

then works. did research , found gridview.layoutparams not exist. doing wrong? tutorial broken?

i did research , found gridview.layoutparams not exist.

where did research? gridview.layoutparams exist. layoutparams class inherited viewgroup class, super class of gridview.

edit:

just took , seems that, said, layoutparams not accessible gridview. use abslistview.layoutparams instead.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -