android - setVisibility(View.Gone) with SwipeyTabs -
i'm beginner android programmer, , i'm trying figure out how work swipeytabs. first of all, way find view:
rb2 = (radiobutton) getview().findviewbyid(r.id.rb2); rb2.setonclicklistener(this);
my second question how set visibility of textview or edittext swipeytabs. i've made simple application without swipeytabs, , there use code:
tvplayer1.setvisibility(view.gone);
once use same line of code within swipeytabs, crashes. can explain me why can't work?
thank in advance!
turned out had grammar mistake in line of code.
etplayer1 = (textview) getview().findviewbyid(r.id.etplayer1);
had be:
etplayer1 = (edittext) getview().findviewbyid(r.id.etplayer1);
Comments
Post a Comment