@Override
    void showDetail(int position) {
      clearMultiChoice();
      detailEmptyView.setVisibility(View.GONE);
      detailSource.startUpdate(detailTarget);

      if (lastPosition > -1) {
        detailSource.destroyItem(detailTarget, lastPosition, handle);
      }

      lastPosition = position;

      handle = detailSource.instantiateItem(detailTarget, position);
      detailSource.finishUpdate(detailTarget);
    }
    private void clearDetail(boolean showEmptyView) {
      clearMultiChoice();
      detailSource.startUpdate(detailTarget);

      if (lastPosition > -1) {
        detailSource.destroyItem(detailTarget, lastPosition, handle);
      }

      lastPosition = -1;

      detailSource.finishUpdate(detailTarget);

      if (showEmptyView) {
        detailEmptyView.setVisibility(View.VISIBLE);
      }
    }
 @Override
 public void startUpdate(ViewGroup container) {
   super.startUpdate(container);
 }
Ejemplo n.º 4
0
 @Override
 public void startUpdate(ViewGroup container) {
   // TODO Auto-generated method stub
   super.startUpdate(container);
 }
Ejemplo n.º 5
0
 @SuppressWarnings("deprecation")
 @Override
 public void startUpdate(View container) {
   // TODO Auto-generated method stub
   super.startUpdate(container);
 }