I am trying to implement architecture for when a user clicks on a ListView item which will then take them to a GridView where they can upload photos to. Like so:
I am thinking to implement a setOnClickListener
onto each item via:
ListView listView = (ListView) findViewById(R.id.list);
..... // Initializing and setting adapter to ListView
listView.setOnClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> av, View view, int i, long l) {
Intent i = new Intent(Activity.this, GridViewActivity.class);
startActivity(i);
}
});
Or would it be better to setup an OnClickItemListener
in my Adapter
class?
Then what would be the best implementation for setting up a GridView
which would contain multi variable photos like this:
I have little experience with GridView
, but have experience with the Camera Library.