1

I want to put buttons under a ListView item, as described at Android Patterns - Swipe for action

I use Slide_out_Left and Slide_out_rigth animation to slide out ListView.
When animation ends, I make it Invisible(View.GONE)

l.getChildAt(position - l.getFirstVisiblePosition()).startAnimation(animationSlideOutLeft);

public void onAnimationEnd(Animation animation) {
    lv.getChildAt(pos - lv.getFirstVisiblePosition()).setVisibility(View.GONE);
}

How can I put two buttons under each ListView item?

Chilledrat
  • 2,593
  • 3
  • 28
  • 38
Alex.Zaiats
  • 138
  • 4
  • 10

1 Answers1

0

Add a seperate .xml view for the buttons, then call a view switcher when an item is clicked.

Everything about view switching is down here: http://developer.android.com/reference/android/widget/ViewSwitcher.html

bunbun
  • 2,595
  • 3
  • 34
  • 52