My goal: onclick hide main linearlayout and make another linearlayout with picture on top visible
Here is my code I can run the onclick and have the main linearlayout hide but the other layout doesn’t showup
final LinearLayout jamesaionolayout = (LinearLayout) findViewById(R.id.jamesaionolayout);
final ImageView jamesaiono = (ImageView) findViewById(R.id.jamesaiono);
final LinearLayout textlayout = (LinearLayout) findViewById(R.id.text);
TextView roster = (TextView) findViewById(R.id.jamesaionotext);
roster.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
jamesaionolayout.setVisibility (View.VISIBLE);
jamesaiono.setVisibility (View.VISIBLE);
textlayout.setVisibility(View.INVISIBLE);
}
});
make it this textlayout.setVisibility(View.GONE);