Tag Archives: GridView

GridView Demo in Flutter

By | October 10, 2018

Hi Friends, Today we will see how to implement GridView in Flutter.     We are going to use this service for the data First we will create a Model for the Grid Cell [java] class HomeCellVO { int id; String title; String icon; HomeCellVO({this.id, this.title, this.icon}); factory HomeCellVO.fromJson(Map<String, dynamic> json) { return HomeCellVO( id: json[‘id’] as int,… Read More »

ListView/GridView with timer in Android.

By | July 18, 2016

Here is a simple example implementing ListView with timer in each row. Model Class for row We have a simple model class for each row in the ListView. Item.java [java] package com.coderzheaven.listviewtimer; import java.util.Timer; public class Item { public String title; public int timeInSeconds; public Timer timer; public Timer getTimer() { return timer; } public void setTimer(Timer timer)… Read More »

Multiple Selection GridView in Android

By | April 26, 2013

This is a simple post that helps you to do multiple selection in a ListView. Check out previous posts for 3D animation in a Listview. At first we will see the XML layout file. This layout contains a gridview since we are dealing with it only. grid_1.xml [xml] <?xml version="1.0" encoding="utf-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/myGrid" android:layout_width="match_parent" android:layout_height="match_parent" android:columnWidth="60dp" android:gravity="center"… Read More »