how to check previous value in android of viewflipper

前端 未结 2 1325
借酒劲吻你
借酒劲吻你 2020-12-20 18:54

I Have eight View flipper which have 4 Question and 4 Answers. Which is display those Question and Answers, whenever that particular viewflipper is

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 19:49

    Okay you have no code that shows how you switch between your views but here it goes: When you switch in code in your on click or whatever you set a membervariable to last = currentselected and currentselected = the id of the selected viewflipper. Really dead simple. Oh and first time you make a check to see if its null. If you want me to be more precise supply code that shows how you switch between your views.

提交回复
热议问题