本文整理了Java中android.support.v7.widget.CardView.getTag()
方法的一些代码示例,展示了CardView.getTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardView.getTag()
方法的具体详情如下:
包路径:android.support.v7.widget.CardView
类名称:CardView
方法名:getTag
暂无
代码示例来源:origin: lingochamp/okdownload
@Override public void queueEnd(@NonNull DownloadContext context) {
actionView.setTag(null);
actionTv.setText(R.string.start);
// to cancel
controller.stop();
serialRb.setEnabled(true);
parallelRb.setEnabled(true);
deleteActionView.setEnabled(true);
deleteActionView.setCardElevation((Float) deleteActionView.getTag());
deleteActionTv.setEnabled(true);
adapter.notifyDataSetChanged();
}
});
代码示例来源:origin: Stoick001/SnapchatClone
@Override
public void onClick(View view) {
Intent intent = new Intent(view.getContext(), DisplayImageActivity.class);
Bundle b = new Bundle();
b.putString("uid", username.getTag().toString());
b.putString("profileImageUrl", cardView.getTag().toString());
b.putString("username", username.getText().toString());
b.putString("chatOrStory", layout.getTag().toString());
intent.putExtras(b);
view.getContext().startActivity(intent);
}
}
代码示例来源:origin: Wensibob/GankClient
@OnClick(R.id.gank_item_card_ll)
void gankClick() {
final Gank click_gank = (Gank) cardView.getTag();
if (click_gank.type.equals("休息视频")) {
if (APPUtil.isNetWorkAvaliable(context)) {
if (APPUtil.isWifiConnected(context)) {
chromeViewPresenter.openWebView(click_gank);
} else {
SnackBarUtil.showTipWithAction(cardView, context.getString(R.string.wifi_unavaliable), context.getString(R.string.wifi_continue), new View.OnClickListener() {
@Override
public void onClick(View v) {
chromeViewPresenter.openWebView(click_gank);
}
});
}
} else {
//TODO 添加一个动作事件,前往网络设置页面
SnackBarUtil.showTipWithoutAction(cardView,context.getString(R.string.network_unavaliable));
}
} else {
chromeViewPresenter.openWebView(click_gank);
}
}
代码示例来源:origin: shrikanth7698/Custom-Navigation-Drawer
final RelativeLayout rootRL = view.findViewById(R.id.rootRL);
backgroundCV.setTag("cv"+i);
System.out.println("Testing "+backgroundCV.getTag());
titleTV.setTag("tv"+i);
if(i>=1){
代码示例来源:origin: alexive/visual-goodies
boolean overrideElevation,
boolean overrideRadius) {
if (!mCardView.getTag(CARD_TYPE_TAG).equals(mCardType))
throw new IllegalArgumentException("Attempting to recycle a card of another type.");
LinkedList<TextView> textViews = new LinkedList<>();
代码示例来源:origin: shrikanth7698/Custom-Navigation-Drawer
final TextView title = (TextView) menuLL.findViewWithTag("tv"+currentPos);
backCV.setVisibility(View.INVISIBLE);
System.out.println("Drawer Testing "+backCV.getTag());
backCV.animate().translationX(rootRL.getX()-backCV.getWidth()).setDuration(1).start();
backCV.animate().translationX(rootRL.getX()).setDuration(300).start();
内容来源于网络,如有侵权,请联系作者删除!