Durgesh Nandan
Durgesh Nandan
This is because index starts from 0 so if you want to select item 3 it's index should be 2. Hope this helps
what component you want to change the orientation
If you are using linear layout then place this attribute in the layout declaration orientation="orient" Orient will be either horizontal or vertical
Hope this helps
//consider a button b1 and its declarations then //it's on click listener would be b1.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { //do something } });
Then you have to make a custom list adapter