Thread: View problem

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    73
    Rep Power
    11

    View problem


    I have a couple EditFields that I would like to stay hidden until made visible by one of many methods. So to achieve this I was hoping to make my controls visible in it's own public void and call it back.


    Code:
    public void showControls(View view) {
        EditText showV = (EditText) findViewById(R.id.vedit);
        EditText showH = (EditText) findViewById(R.id.hedit);
    
        showH.setVisability(view.VISABLE);
        showV.setVisability(view.VISABLE);
    }
    
    
    //calling on showControls
    public void onMethodOne (View view) {
        showControls();
    }
    My output reads:
    'com.rayman.raysgame.MainActivity.showControls(android.view.View)' in 'com.rayman.raysgame.MainActivity' cannot be applied to '()'

    I don't really understand the output, so I am not sure how am I screwing up the code. I'd like to understand my mistake.
    Last edited by Rayman1986; January 20th, 2014 at 08:36 PM. Reason: tags

IMN logo majestic logo threadwatch logo seochat tools logo