title: Toggle of linearlayout on every click of menu(imageview)
body: <p>I have a menu imageview, when clicked on it my linearlayout(line2) appears, but it should again disappear on the next click of menu imageview</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  line1=(LinearLayout) findViewById(R.id.ll1);
           line2=(LinearLayout)findViewById(R.id.ll2);
  
           menu=(ImageView)findViewById(R.id.menu);
  
           menu.setOnClickListener(new OnClickListener() {
  
         public void onClick(View v) {
             menu.setVisibility(View.VISIBLE);
           // TODO Auto-generated method stub
         line1.setVisibility(View.VISIBLE);
         line2.setVisibility(View.VISIBLE);
           }
       });
  </code></pre>