I am using GridView in my Android application. 
As you can see, I am using it for a ‘mini’ calendar.
This is my code to ‘update the calendar’ and put the information into the grid.
items.add(name + "\n" + time + "\n" + amount);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);
gridview.setAdapter(adapter);
However, is there a way I can specify to the GridView where I want to put this item? Is there a method to do this? For example, if the tab that is highlighted is Sunday and a new medication is added, I want it to go under Sunday always.
As of now, it travels to the right (so, when I keep adding in medications, it goes under Sunday first, then Monday, then Tuesday, etc.)
Thanks for all of your help!
It looks like you’ve come a long way with your
GridViewso far, but I figured I should point out that there are other options.For >= API 11+, check out
CalenderView(from the Android public SDK).For < API 11, there are a few open source libraries you could use. I’ve heard good things about
Android-Calender-ViewandCalenderView(both third-party libraries).