Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

OnItemClickListener convert java to c#

$
0
0
can any one convert this java code to c#

   wordList.setOnItemClickListener(new OnItemClickListener() {

            //click listener for items within list
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) 
            {
                //cast the view
                TextView wordView = (TextView)view;
                //retrieve the chosen word
                String wordChosen = (String) wordView.getText();
                //output for debugging
                Log.v(LOG_TAG, "chosen: "+wordChosen);
                //speak the word using the TTS
                repeatTTS.speak("You said: "+wordChosen, TextToSpeech.QUEUE_FLUSH, null);
                //output Toast message
                Toast.makeText(SpeechRepeatActivity.this, "You said: "+wordChosen, Toast.LENGTH_SHORT).show();//**alter for your Activity name***
            }
        });

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>