I'm trying to learn how to develop Android using the Eclipse IDE. What I'm trying to do right now is make a hidden TableLayout visible when a button is pressed. However, I have no idea as to what I need to put in the button's OnClick property.
Also, are there any tutorials online that could help me learn how to develop Android apps in Eclipse?
Thanks!
Try this in MainActivity class :
/* onClick method of show button */
/* onClick method of hide button */
and try this in onCreate method :
Try:
Hope this works.
well just take the reference of the TableLayout by using
findViewById(int)
in theonClickListener()
. once you have the object of TableLayout, callsetVisibility(View.VISIBLE)
Something like that within your
onClick()
method should do the trick.