2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by mahdi68
0

Don't have the code with me but i've implemented touch support on a list. google will provide some examples.

0

please tell me what i should search on google icant fine any usefull things
thanks

2

I have some code like this:

setContentView(R.layout.list_view_layout);
				lv1=(ListView)findViewById(R.id.ListView01);
				lv1.setAdapter(seek_adapter);
				

				total=0;
				lv1.setOnItemLongClickListener( new OnItemLongClickListener() {

					@Override
					public boolean onItemLongClick(AdapterView<?> arg0,
							View arg1, int position, long arg3) {
						
						// first spot. ignore
						if(position == 0)
							return true;

so it looks like all you need to do is take your list view variables and call its long item click listener or maybe just a click listener.

i.e.
lv1.setOnItemLongClickListener(


for google, maybe listview click or listview android click, throw in listener if you want too etc.
mike

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.