Skip to content Skip to sidebar Skip to footer

Android -- Changing Tab Visibility From Inside Tab Activities

I'm currently attempting to change tabs from inside of other activities -- that much is straight forward. However, I'm having trouble when attempting to set the visibility of other

Solution 1:

I don't know if tabHost.getTabWidget().getChildAt(0) is the right way to do it. Have you tried giving the tabs an individual ID?

alternatively, if you want to try and track the exact location of the error throw a bunch of breakpoints and run it in Debug mode.

Oh Button btn = (Button)this.findViewById(R.id.login_button); I believe can do without a "this" (although I could be wrong.... fwiw i never used this in a button declaration)

Post a Comment for "Android -- Changing Tab Visibility From Inside Tab Activities"