Define Button

kcube = (Button) findViewById(R.id.kcube);

 

kcube.setVisibility(View.INVISIBLE);

//Space is allocate in invisibel VIew

or -

kcube.setVisibility(View.GONE);

//Space is remove in GONE View

show it again with -

kcube.setVisibility(View.VISIBLE);

 

For Setting Background image to button

kcube.setBackgroundResource(R.drawable.kcubelogo);

Recent Comments

0 Comments

Sign In To Leave a Comment

Type your Comment below and click to send comment

error: function(jqXHR, textStatus, errorThrown) { alert(errorThrown); }