954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

touch support on high level item`s

Hi
is it possible active touch support on high level item`s(form , list , ... ) ?
thanks

mahdi68
Junior Poster in Training
95 posts since Jun 2009
Reputation Points: 6
Solved Threads: 0
 

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

adams161
Posting Whiz in Training
281 posts since May 2008
Reputation Points: 31
Solved Threads: 27
 

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

mahdi68
Junior Poster in Training
95 posts since Jun 2009
Reputation Points: 6
Solved Threads: 0
 

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

adams161
Posting Whiz in Training
281 posts since May 2008
Reputation Points: 31
Solved Threads: 27
 

thanks

mahdi68
Junior Poster in Training
95 posts since Jun 2009
Reputation Points: 6
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: