android.support.v7.widget.CardView.setVisibility()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(181)

本文整理了Java中android.support.v7.widget.CardView.setVisibility()方法的一些代码示例,展示了CardView.setVisibility()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardView.setVisibility()方法的具体详情如下:
包路径:android.support.v7.widget.CardView
类名称:CardView
方法名:setVisibility

CardView.setVisibility介绍

暂无

代码示例

代码示例来源:origin: fanrunqi/MaterialLogin

@Override
public void onTransitionStart(Transition transition) {
  cvAdd.setVisibility(View.GONE);
}

代码示例来源:origin: fanrunqi/MaterialLogin

@Override
  public void onAnimationStart(Animator animation) {
    cvAdd.setVisibility(View.VISIBLE);
    super.onAnimationStart(animation);
  }
});

代码示例来源:origin: fanrunqi/MaterialLogin

@Override
public void onAnimationEnd(Animator animation) {
  cvAdd.setVisibility(View.INVISIBLE);
  super.onAnimationEnd(animation);
  fab.setImageResource(R.drawable.plus);
  AActivityTwo.super.onBackPressed();
}

代码示例来源:origin: facebook/facebook-android-sdk

private void toggleMapAndList() {
  state = state == State.MAP ? State.LIST : State.MAP;
  if (state == State.LIST) {
    if (mapFragment != null) {
      FragmentTransaction ft = getChildFragmentManager().beginTransaction();
      ft.hide(mapFragment).commit();
    }
    recyclerView.setVisibility(View.VISIBLE);
    currentPlaceCardView.setVisibility(View.VISIBLE);
  }
  if (state == State.MAP) {
    if (mapFragment == null) {
      mapFragment = SupportMapFragment.newInstance();
      FragmentTransaction transaction = getChildFragmentManager().beginTransaction();
      transaction.replace(R.id.place_search_map_placeholder, mapFragment);
      transaction.commit();
      mapFragment.getMapAsync(this);
    } else {
      FragmentTransaction ft = getChildFragmentManager().beginTransaction();
      ft.show(mapFragment).commit();
    }
    recyclerView.setVisibility(View.INVISIBLE);
    currentPlaceCardView.setVisibility(View.INVISIBLE);
  }
  displayPlaces(placesToDisplay);
}

代码示例来源:origin: XunMengWinter/Now

@OnClick(R.id.fab)
void fabOnClick() {
  if (isMenuShow) {
    mCardView.setVisibility(View.GONE);
    isMenuShow = false;
  } else {
    mCardView.setVisibility(View.VISIBLE);
    isMenuShow = true;
  }
}

代码示例来源:origin: XunMengWinter/Now

@OnClick(R.id.qq_textView)
void shareQQ() {
  mCardView.setVisibility(View.GONE);
  isMenuShow = false;
  share(TYPE_QQ);
}

代码示例来源:origin: limuyang2/CardSearchView

@Override
public void onAnimationEnd(Animator animation) {
  search.setVisibility(View.INVISIBLE);
  KeyboardUtils.hideSoftInput(editText, context);
}

代码示例来源:origin: zhangke3016/TranslationCompat

@Override
  public void onAnimationStart(Animator animation) {
    cvAdd.setVisibility(View.VISIBLE);
    super.onAnimationStart(animation);
  }
});

代码示例来源:origin: hieuapp/android-firebase-chat

@Override
public void onAnimationEnd(Animator animation) {
  cvAdd.setVisibility(View.INVISIBLE);
  super.onAnimationEnd(animation);
  fab.setImageResource(R.drawable.ic_signup);
  RegisterActivity.super.onBackPressed();
}

代码示例来源:origin: hieuapp/android-firebase-chat

@Override
  public void onAnimationStart(Animator animation) {
    cvAdd.setVisibility(View.VISIBLE);
    super.onAnimationStart(animation);
  }
});

代码示例来源:origin: didixyy/BilibiliSearchView

@Override
public void onAnimationEnd(Animator animation) {
  search.setVisibility(View.GONE);
  ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(search.getWindowToken(), 0);
}

代码示例来源:origin: XunMengWinter/Now

@OnClick(R.id.wechat_textView)
void shareWechat() {
  mCardView.setVisibility(View.GONE);
  isMenuShow = false;
  Share.shareToWechat(this, mTitle, summary, mUrl, bitmap);
}

代码示例来源:origin: XunMengWinter/Now

@OnClick(R.id.qzone_textView)
void shareQzone() {
  mCardView.setVisibility(View.GONE);
  isMenuShow = false;
  share(TYPE_QZONE);
}

代码示例来源:origin: Jerey-Jobs/KeepGank

@Override
public void onAnimationEnd(Animator animation) {
  search.setVisibility(View.INVISIBLE);
  ((InputMethodManager) context.getSystemService(Context
      .INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(search
      .getWindowToken(), 0);
  KeyboardUtils.hideSoftInput(editText, context);
}

代码示例来源:origin: XunMengWinter/Now

@OnClick(R.id.other_textView)
void shareOther() {
  mCardView.setVisibility(View.GONE);
  isMenuShow = false;
  Intent intent = new Intent(Intent.ACTION_SEND);
  intent.setType("text/plain");
  intent.putExtra(Intent.EXTRA_TEXT, mTitle + " \n" + mUrl);
  intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.share_subject));
  intent = Intent.createChooser(intent, getString(R.string.share_to));
  startActivity(intent);
}

代码示例来源:origin: rumboalla/apkupdater

@UiThread(propagation = UiThread.Propagation.REUSE)
void setProgressBarVisibility(
  int v
) {
  try {
    AnimationUtil.startSlideAnimation(getContext(), mLoaderContainer);
    mLoaderContainer.setVisibility(v);
  } catch (Exception e) {
    e.printStackTrace();
  }
}

代码示例来源:origin: zhangke3016/TranslationCompat

@Override
      public void onAnimationEnd(Animator animation) {
        cvAdd.setVisibility(View.INVISIBLE);
        super.onAnimationEnd(animation);
        fab.setImageResource(R.drawable.plus);
//                RegisterActivity.super.onBackPressed();
        TransitionController.getInstance().exitActivity(RegisterActivity.this);
      }

代码示例来源:origin: arthur-ghazaryan/floating-action-menu

/**
 * Set mini fab's state (enabled or disabled).
 */
public void setMiniFabsEnable(boolean enable) {
  for (FabWithTitleView mFabWithlabel : mFabWithTitles) {
    mFabWithlabel.getCard().setVisibility(enable ? View.VISIBLE : View.GONE);
    mFabWithlabel.getFab().setVisibility(enable ? View.VISIBLE : View.GONE);
  }
}

代码示例来源:origin: NightscoutFoundation/xDrip

private synchronized void showSnoozeFloater() {
  if (floaterHidden) {
    animateSnoozeFloater(floatingsnooze.getHeight(), 0, new DecelerateInterpolator(1.5f));
    floaterHidden = false;
    floatingsnooze.setVisibility(View.VISIBLE);
    showcase(this, SHOWCASE_REMINDER3);
  }
  hideKeyboard(recyclerView);
}

代码示例来源:origin: jamorham/xDrip-plus

private synchronized void showSnoozeFloater() {
  if (floaterHidden) {
    animateSnoozeFloater(floatingsnooze.getHeight(), 0, new DecelerateInterpolator(1.5f));
    floaterHidden = false;
    floatingsnooze.setVisibility(View.VISIBLE);
    showcase(this, SHOWCASE_REMINDER3);
  }
  hideKeyboard(recyclerView);
}

相关文章