Created
January 11, 2014 17:41
-
-
Save aemxn/8374119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void onCreate(Bundle savedInstanceState) { | |
... | |
// get listview | |
ListView lv = getListView(); | |
lv.setDivider(null); | |
lv.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() { | |
@Override | |
public void onItemClick(AdapterView<?> arg0, View view, | |
int position, long arg3) { | |
Toast.makeText(CategoryActivity.this, "Item selected: " + position, | |
Toast.LENGTH_LONG).show(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment