Code example for View

Methods: getTag

0
        }); 
        mListView.setOnItemClickListener(new OnItemClickListener() {
 
            @Override 
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                Class<?> cls = (Class<?>) view.getTag();
                Intent intent = new Intent(MainActivity.this, cls);
                startActivity(intent);
            } 
 
        }); 
 
        setContentView(mListView);
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java