Android - How To Get Listview Text?
I'm a complete newbie to Android, and this may actually be more of a Java question... I'm trying to set up an if statement based on the item clicked in a ListView. In my onItemClic
Solution 1:
When comparing Strings in Java, you should use equals()
:
if (((TextView) view).getText().equals("Page 1")) {
...
}
Post a Comment for "Android - How To Get Listview Text?"