コード例 #1
0
 @Override
 public void hide() {
   if (currentDropdownList != null) {
     currentDropdownList.clearAnimation();
     currentDropdownList.startAnimation(dropdown_out);
     currentDropdownList.button.setChecked(false);
     mask.clearAnimation();
     mask.startAnimation(dropdown_mask_out);
   }
   currentDropdownList = null;
 }
コード例 #2
0
 @Override
 public void show(DropdownListView view) {
   if (currentDropdownList != null) {
     currentDropdownList.clearAnimation();
     currentDropdownList.startAnimation(dropdown_out);
     currentDropdownList.setVisibility(View.GONE);
     currentDropdownList.button.setChecked(false);
   }
   currentDropdownList = view;
   mask.clearAnimation();
   mask.setVisibility(View.VISIBLE);
   currentDropdownList.clearAnimation();
   currentDropdownList.startAnimation(dropdown_in);
   currentDropdownList.setVisibility(View.VISIBLE);
   currentDropdownList.button.setChecked(true);
   mask.bringToFront();
   currentDropdownList.bringToFront();
 }