Android. How to disable on click tab in Viewpager -
in oncreate() add buttons give them ids , variables, attach disabled when want.
button button1, button2; @override public void oncreate (bundle savedinstancestate) { // oncreate(); stuff button1 = (button)findviewbyid(r.id.button_problem_type); button2 = (button)findviewbyid(r.id.button_picture_type); } @override public void onactivitycreated( bundle savedinstancestate ) { super.onactivitycreated( savedinstancestate ); button1.setenabled(false); button2.setenabled(false); }
Comments
Post a Comment