Belgi
Belgi

Reputation: 15052

Android: controlling the ListView

I would like it than when I click something on the ListView that the text box won't appear. For example : in this tutorial pat 6 : when "American Samoa" was clicked appeared a text box on the buttom of the screen with the text "sa".

Upvotes: 0

Views: 46

Answers (1)

user370305
user370305

Reputation: 109237

Remove this line from onItemClick(),

Toast.makeText(getApplicationContext(), ((TextView) view).getText(),          Toast.LENGTH_SHORT).show();

Upvotes: 2

Related Questions