Make invisible a button in an Android Application

If you want in your android application to make a button invisible, place this code in your app:

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

btnEliminar.setVisibility(4);

 

//If you want to make it visible again, change the 4 for a 0.

創作者介紹

做自己 好自在

a22710518 發表在 痞客邦 PIXNET 留言(0) 人氣()