From 5d820edfd5486686a54ac88637628e64eedf6fbd Mon Sep 17 00:00:00 2001 From: Gabriel Lidenor Date: Mon, 5 Mar 2018 08:43:01 -0300 Subject: [PATCH] Update README.md Making use of the new names of the methods of the lib. --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0bb258e..ac5ddda 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,8 @@ protected void onCreate(Bundle savedInstanceState) { } private void changeSize(int r, int c) { - gridView.setRow(r); - gridView.setColumn(c); + gridView.setNumRows(r); + gridView.setNumColumn(c); gridView.update(); } ``` @@ -78,9 +78,8 @@ private void changeSize(int r, int c) { ###### in your adapter: ```java // In adapter, you can define your grid size by passing it to super method. -int dataSize = 15; Adapter(Context context) { - super(context, R.layout.grid_item, dataSize); + super(context, R.layout.grid_item, 15); this.context = context; } ```