Display data from database into textview

后端 未结 3 1097
误落风尘
误落风尘 2020-12-16 07:45

I\'m trying display random data from database into two textviews (TextView1 display NAME, TextView2 display PHONENUMBER) when I click on next button, but I don\'t know how c

3条回答
  •  暖寄归人
    2020-12-16 08:17

    You need an OnClickListener in your button. You can declare it in XML using the android:onClick attribute.

    This is explained in a detailed manner in http://developer.android.com/guide/topics/ui/controls/button.html#HandlingEvents.

提交回复
热议问题