I want to click on my spinner and click on any button to take it as action, but one Dialog is always shown on the click. My code is:
See the last. On Touch Listener SP = New View. The Internet (Public Boolean On-Touch 1 (see V, Motion Event Event) {if (event.getAction () == MotionEvent ACTION_UP} {list (); // function to call} return true; } @ Override Public Boolean On-Touch (see Arg 0, Motion Avenger 1) {// To-be Audi Auto-Generated Method Stub List; Work for calling for return; }};
Spinners do not have the ability to do as you wish.
What you can do but create a textview / button with spinner style so that it looks like a spinner style = "@ Android: style / widget Then enter a onClick listener in that textview and click whatever you want < / Html>
No comments:
Post a Comment