I know this question is asked several times and I tried to solve according the other solution but in vain. I used customAdapterView with listview. I have also set clickable in the xml. But it's not working.
My question is what's the error that listview is not being clickable?
**Another interesting matter catches my eye that if i start any id name with "list....." during findViewby resoruce id or case - the "l" alphabet automatically becomes captial. Why it happens?
The following portion is inside of onCreate method:-
uddin= getResources().getStringArray(R.array.uddin_name_array);
body=getResources().getStringArray(R.array.uddin_body_array);
prof = getResources().getStringArray(R.array.prof_name_array);
ListView listView= findViewById(R.id.uddinListView);
listView.setClickable(true);
listView.setAdapter(new MyCustomAdapter(this,R.layout.activity_list_view,uddin,prof));
listView.setOnItemClickListener(new AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Intent intent=new Intent(MainActivity.this,ReadingUddinActivity.class);
startActivity(intent);}
}
);