0

I have ImageButton that you can find at the map and has its corresponding layout that will show at the bottom of the screen. My question is how will I be able to show those layouts whenever I clicked ImageButton at the map? In default, there is no visible layout yet at the bottom of the screen.

4

1 回答 1

0

在屏幕上添加您的布局并将可见性设置为 false。每当单击按钮时,将布局的可见性设置为 true。
就像这个一样

button.setOnClickListener(new OnClickListener(){

   @Override  
   public void onClick(View v) {  
      correspondingLayout.setVisibility(View.INVISIBLE);
   }}
于 2013-05-17T05:51:29.653 回答