Change the width of a gridview column dynamically

I am trying to resize elements in my GridView . Currently, the elements are ordered by style (GridView_words_small) in xml:

 numColumns: auto_fit stetchMode: 'spacingWidth' ColumnWidth: width of the items being added (resource). 

Now, having changed the settings, you can change the format. However, when I setColumnWidth() and invalidate() , the elements are not displayed (leaving the area empty.)

Does anyone know how to correctly change the width of GridView columns dynamically?

+4
source share

All Articles