I have a listview Containing some listitems similar to twitter tweets.When i clicked on a particular listitem,it shows the details of the that particular list item.
On that activity,there contains two buttons for showing "next" listitems details and "prev" listitem details.
Problem: How to show the "prev" listitem(by clicking prev button) and "next" listitem(by clicking next button) on that particular activity using view flipper.How can get the Listitem details from the main activity to this activity?
**Next :**
int position,last;
position=listView.getCheckedItemPosition();
position=position + 1;
listView.getItemAtPosition(position);
last=listView.getLastVisiblePosition()
if(position==last)
{
System.out.println("Next is Impossilble");
}
**Previous:**
int position;
position=listView.getCheckedItemPosition();
position=position - 1;
listView.getItemAtPosition(position);
last=listView.getLastVisiblePosition()
if(position==1)
{
System.out.println("previous is Impossilble");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With