本文整理汇总了Java中butterknife.ButterKnife.Finder类的典型用法代码示例。如果您正苦于以下问题:Java Finder类的具体用法?Java Finder怎么用?Java Finder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Finder类属于butterknife.ButterKnife包,在下文中一共展示了Finder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.view_top_divider = (View) finder.findRequiredView(source, R.id.view_top_divider,
"field 'view_top_divider'");
target.iv_icon = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.iv_icon, "field 'iv_icon'"), R.id.iv_icon, "field 'iv_icon'");
target.tv_title = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_title, "field 'tv_title'"), R.id.tv_title, "field 'tv_title'");
target.tv_subtitle = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_subtitle, "field 'tv_subtitle'"), R.id.tv_subtitle, "field 'tv_subtitle'");
target.tv_indicate = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_indicate, "field 'tv_indicate'"), R.id.tv_indicate, "field 'tv_indicate'");
target.view_indicate = (ImageView) finder.castView((View) finder.findRequiredView(source,
R.id.view_indicate, "field 'view_indicate'"), R.id.view_indicate, "field " +
"'view_indicate'");
target.view_bottom_divider = (View) finder.findRequiredView(source, R.id
.view_bottom_divider, "field 'view_bottom_divider'");
}
示例2: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.iv_icon = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.iv_icon, "field 'iv_icon'"), R.id.iv_icon, "field 'iv_icon'");
target.tv_consume = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_consume, "field 'tv_consume'"), R.id.tv_consume, "field 'tv_consume'");
target.tv_title = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_title, "field 'tv_title'"), R.id.tv_title, "field 'tv_title'");
target.tv_unit = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_unit, "field 'tv_unit'"), R.id.tv_unit, "field 'tv_unit'");
target.tv_subtitle = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_subtitle, "field 'tv_subtitle'"), R.id.tv_subtitle, "field 'tv_subtitle'");
target.tv_indicate = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_indicate, "field 'tv_indicate'"), R.id.tv_indicate, "field 'tv_indicate'");
target.view_indicate = (ImageView) finder.castView((View) finder.findRequiredView(source,
R.id.view_indicate, "field 'view_indicate'"), R.id.view_indicate, "field " +
"'view_indicate'");
}
示例3: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.frameContent = (FrameLayout) finder.castView((View) finder.findRequiredView
(source, R.id.frame_content, "field 'frameContent'"), R.id.frame_content, "field " +
"'frameContent'");
target.ivTop = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.iv_top, "field 'ivTop'"), R.id.iv_top, "field 'ivTop'");
target.viewTabs = (TabLayout) finder.castView((View) finder.findRequiredView(source, R.id
.view_tabs, "field 'viewTabs'"), R.id.view_tabs, "field 'viewTabs'");
target.headerLayout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.header_layout, "field 'headerLayout'"), R.id.header_layout, "field " +
"'headerLayout'");
target.layout = (TouchCallbackLayout) finder.castView((View) finder.findRequiredView
(source, R.id.layout, "field 'layout'"), R.id.layout, "field 'layout'");
View view = (View) finder.findRequiredView(source, R.id.fab_button, "field 'fabButton' " +
"and method 'onClick'");
target.fabButton = (FloatingActionButton) finder.castView(view, R.id.fab_button, "field " +
"'fabButton'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
target.vfNotice = (ViewFlipper) finder.castView((View) finder.findRequiredView(source, R
.id.vf_notice, "field 'vfNotice'"), R.id.vf_notice, "field 'vfNotice'");
}
示例4: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.toggle_bingo = (ToggleButton) finder.castView((View) finder.findRequiredView
(source, R.id.toggle_bingo, "field 'toggle_bingo'"), R.id.toggle_bingo, "field " +
"'toggle_bingo'");
target.et_calory = (EditText) finder.castView((View) finder.findRequiredView(source, R.id
.et_calory, "field 'et_calory'"), R.id.et_calory, "field 'et_calory'");
target.et_name = (EditText) finder.castView((View) finder.findRequiredView(source, R.id
.et_name, "field 'et_name'"), R.id.et_name, "field 'et_name'");
target.iv_photo = (PhotoView) finder.castView((View) finder.findRequiredView(source, R.id
.iv_photo, "field 'iv_photo'"), R.id.iv_photo, "field 'iv_photo'");
((View) finder.findRequiredView(source, R.id.ll_invite_bingo, "method 'onClick'"))
.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例5: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.avatar = (CircleImageView) finder.castView((View) finder.findRequiredView(source,
R.id.avatar, "field 'avatar'"), R.id.avatar, "field 'avatar'");
target.tvAdviser = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_adviser, "field 'tvAdviser'"), R.id.tv_adviser, "field 'tvAdviser'");
target.tvWechat = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_wechat, "field 'tvWechat'"), R.id.tv_wechat, "field 'tvWechat'");
target.viewRefresh = (PullToRefreshListView) finder.castView((View) finder
.findRequiredView(source, R.id.view_refresh, "field 'viewRefresh'"), R.id
.view_refresh, "field 'viewRefresh'");
target.etInput = (EditText) finder.castView((View) finder.findRequiredView(source, R.id
.et_input, "field 'etInput'"), R.id.et_input, "field 'etInput'");
target.viewBottom = (LinearLayout) finder.castView((View) finder.findRequiredView(source,
R.id.view_bottom, "field 'viewBottom'"), R.id.view_bottom, "field 'viewBottom'");
((View) finder.findRequiredView(source, R.id.bt_send, "method 'onClick'"))
.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick();
}
});
}
示例6: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.tvStatus = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_status, "field 'tvStatus'"), R.id.tv_status, "field 'tvStatus'");
target.tvNote = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_note, "field 'tvNote'"), R.id.tv_note, "field 'tvNote'");
target.llDetail = (LinearLayout) finder.castView((View) finder.findRequiredView(source, R
.id.ll_detail, "field 'llDetail'"), R.id.ll_detail, "field 'llDetail'");
target.tvCommit = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_commit, "field 'tvCommit'"), R.id.tv_commit, "field 'tvCommit'");
target.llUpdate = (LinearLayout) finder.castView((View) finder.findRequiredView(source, R
.id.ll_update, "field 'llUpdate'"), R.id.ll_update, "field 'llUpdate'");
target.etShipment = (EditText) finder.castView((View) finder.findRequiredView(source, R
.id.et_shipment, "field 'etShipment'"), R.id.et_shipment, "field 'etShipment'");
target.etAccount = (EditText) finder.castView((View) finder.findRequiredView(source, R.id
.et_account, "field 'etAccount'"), R.id.et_account, "field 'etAccount'");
target.ivShipmentLine = (View) finder.findRequiredView(source, R.id.iv_shipment_line,
"field 'ivShipmentLine'");
}
示例7: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
View view = (View) finder.findRequiredView(source, R.id.btn_next, "field 'btnNext' and " +
"method 'onClick'");
target.btnNext = (TextView) finder.castView(view, R.id.btn_next, "field 'btnNext'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
target.pickerLayout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.picker_layout, "field 'pickerLayout'"), R.id.picker_layout, "field " +
"'pickerLayout'");
target.tvBirth = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_birth, "field 'tvBirth'"), R.id.tv_birth, "field 'tvBirth'");
target.tvNoUse = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_no_use, "field 'tvNoUse'"), R.id.tv_no_use, "field 'tvNoUse'");
}
示例8: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.tvSuggestWeight = (TextView) finder.castView((View) finder.findRequiredView
(source, R.id.tv_suggest_weight, "field 'tvSuggestWeight'"), R.id
.tv_suggest_weight, "field 'tvSuggestWeight'");
target.tvTargetWeight = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_target_weight, "field 'tvTargetWeight'"), R.id.tv_target_weight, "field " +
"'tvTargetWeight'");
target.rvTargetWeight = (BooheeRulerView) finder.castView((View) finder.findRequiredView
(source, R.id.rv_target_weight, "field 'rvTargetWeight'"), R.id.rv_target_weight,
"field 'rvTargetWeight'");
View view = (View) finder.findRequiredView(source, R.id.btn_next, "field 'btnNext' and " +
"method 'onClick'");
target.btnNext = (TextView) finder.castView(view, R.id.btn_next, "field 'btnNext'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
target.tvTooLow = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_too_low, "field 'tvTooLow'"), R.id.tv_too_low, "field 'tvTooLow'");
}
示例9: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.tvWeek = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_week, "field 'tvWeek'"), R.id.tv_week, "field 'tvWeek'");
target.date = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.date, "field 'date'"), R.id.date, "field 'date'");
target.tvLose = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_lose, "field 'tvLose'"), R.id.tv_lose, "field 'tvLose'");
target.rvTargetWeight = (BooheeRulerView) finder.castView((View) finder.findRequiredView
(source, R.id.rv_target_weight, "field 'rvTargetWeight'"), R.id.rv_target_weight,
"field 'rvTargetWeight'");
target.tvTooLow = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_too_low, "field 'tvTooLow'"), R.id.tv_too_low, "field 'tvTooLow'");
View view = (View) finder.findRequiredView(source, R.id.btn_next, "field 'btnNext' and " +
"method 'onClick'");
target.btnNext = (TextView) finder.castView(view, R.id.btn_next, "field 'btnNext'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例10: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.tvTitle = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_title, "field 'tvTitle'"), R.id.tv_title, "field 'tvTitle'");
target.tvTime = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_time, "field 'tvTime'"), R.id.tv_time, "field 'tvTime'");
target.tvCalory = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_calory, "field 'tvCalory'"), R.id.tv_calory, "field 'tvCalory'");
target.llTop = (RelativeLayout) finder.castView((View) finder.findRequiredView(source, R
.id.ll_top, "field 'llTop'"), R.id.ll_top, "field 'llTop'");
target.btnNeg = (Button) finder.castView((View) finder.findRequiredView(source, R.id
.btn_neg, "field 'btnNeg'"), R.id.btn_neg, "field 'btnNeg'");
target.imgLine = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.img_line, "field 'imgLine'"), R.id.img_line, "field 'imgLine'");
target.btnPos = (Button) finder.castView((View) finder.findRequiredView(source, R.id
.btn_pos, "field 'btnPos'"), R.id.btn_pos, "field 'btnPos'");
target.ivIcon = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.iv_icon, "field 'ivIcon'"), R.id.iv_icon, "field 'ivIcon'");
target.llBg = (LinearLayout) finder.castView((View) finder.findRequiredView(source, R.id
.ll_bg, "field 'llBg'"), R.id.ll_bg, "field 'llBg'");
target.ivBackground = (ImageView) finder.castView((View) finder.findRequiredView(source,
R.id.iv_bg, "field 'ivBackground'"), R.id.iv_bg, "field 'ivBackground'");
}
示例11: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.thumbPhoto = (ImageView) finder.castView((View) finder.findRequiredView(source, R
.id.thumb_photo, "field 'thumbPhoto'"), R.id.thumb_photo, "field 'thumbPhoto'");
target.title = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.title, "field 'title'"), R.id.title, "field 'title'");
target.priceValue = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.price_value, "field 'priceValue'"), R.id.price_value, "field 'priceValue'");
target.quantityValue = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.quantity_value, "field 'quantityValue'"), R.id.quantity_value, "field " +
"'quantityValue'");
target.tvUnshipped = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_unshipped, "field 'tvUnshipped'"), R.id.tv_unshipped, "field 'tvUnshipped'");
target.tvGoodsReturn = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_goods_return, "field 'tvGoodsReturn'"), R.id.tv_goods_return, "field " +
"'tvGoodsReturn'");
target.tvShipmentDetails = (Button) finder.castView((View) finder.findRequiredView
(source, R.id.tv_shipment_details, "field 'tvShipmentDetails'"), R.id
.tv_shipment_details, "field 'tvShipmentDetails'");
target.rlShip = (RelativeLayout) finder.castView((View) finder.findRequiredView(source, R
.id.rl_ship, "field 'rlShip'"), R.id.rl_ship, "field 'rlShip'");
}
示例12: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.cover = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.cover, "field 'cover'"), R.id.cover, "field 'cover'");
target.name = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.name, "field 'name'"), R.id.name, "field 'name'");
target.duration = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.duration, "field 'duration'"), R.id.duration, "field 'duration'");
target.select = (CheckBox) finder.castView((View) finder.findRequiredView(source, R.id
.select, "field 'select'"), R.id.select, "field 'select'");
target.progress = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.progress, "field 'progress'"), R.id.progress, "field 'progress'");
target.coverArea = (View) finder.findRequiredView(source, R.id.cover_area, "field " +
"'coverArea'");
target.shadow = (View) finder.findRequiredView(source, R.id.shadow, "field 'shadow'");
target.wheel = (ProgressWheel) finder.castView((View) finder.findRequiredView(source, R
.id.wheel, "field 'wheel'"), R.id.wheel, "field 'wheel'");
target.continueDownload = (View) finder.findRequiredView(source, R.id.continue_download,
"field 'continueDownload'");
target.arrow = (ImageView) finder.castView((View) finder.findRequiredView(source, R.id
.arrow, "field 'arrow'"), R.id.arrow, "field 'arrow'");
target.item = (RelativeLayout) finder.castView((View) finder.findRequiredView(source, R
.id.item, "field 'item'"), R.id.item, "field 'item'");
target.wait = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.wait, "field 'wait'"), R.id.wait, "field 'wait'");
target.divider = (View) finder.findRequiredView(source, R.id.divider, "field 'divider'");
}
示例13: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
super.inject(finder, (BetListFragment) target, source);
target.msgView = (RelativeLayout) finder.castView((View) finder.findRequiredView(source,
R.id.msg_view, "field 'msgView'"), R.id.msg_view, "field 'msgView'");
target.tvMsg = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_msg, "field 'tvMsg'"), R.id.tv_msg, "field 'tvMsg'");
target.tvTime = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_time, "field 'tvTime'"), R.id.tv_time, "field 'tvTime'");
View view = (View) finder.findRequiredView(source, R.id.btn_msg, "field 'btnMsg' and " +
"method 'onClick'");
target.btnMsg = (TextView) finder.castView(view, R.id.btn_msg, "field 'btnMsg'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例14: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.tvStep = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_step, "field 'tvStep'"), R.id.tv_step, "field 'tvStep'");
target.checkBoxStep = (AnimCheckBox) finder.castView((View) finder.findRequiredView
(source, R.id.check_box_step, "field 'checkBoxStep'"), R.id.check_box_step,
"field 'checkBoxStep'");
target.checkBoxNotification = (AnimCheckBox) finder.castView((View) finder
.findRequiredView(source, R.id.check_box_notification, "field " +
"'checkBoxNotification'"), R.id.check_box_notification, "field " +
"'checkBoxNotification'");
target.tvPermission = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_permission, "field 'tvPermission'"), R.id.tv_permission, "field " +
"'tvPermission'");
target.llContent = (LinearLayout) finder.castView((View) finder.findRequiredView(source,
R.id.ll_content, "field 'llContent'"), R.id.ll_content, "field 'llContent'");
target.checkBoxNotificationPermission = (AnimCheckBox) finder.castView((View) finder
.findRequiredView(source, R.id.check_box_notification_permission, "field " +
"'checkBoxNotificationPermission'"), R.id
.check_box_notification_permission, "field 'checkBoxNotificationPermission'");
((View) finder.findRequiredView(source, R.id.ll_notifi_permission, "method 'onClick'"))
.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例15: inject
import butterknife.ButterKnife.Finder; //导入依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.mPullRefreshListView = (PullToRefreshListView) finder.castView((View) finder
.findRequiredView(source, R.id.listview, "field 'mPullRefreshListView'"), R.id
.listview, "field 'mPullRefreshListView'");
View view = (View) finder.findRequiredView(source, R.id.fab_button, "field 'fabButton' " +
"and method 'onClick'");
target.fabButton = (FloatingActionButton) finder.castView(view, R.id.fab_button, "field " +
"'fabButton'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
target.tvIndicator = (View) finder.findRequiredView(source, R.id.tv_indicator, "field " +
"'tvIndicator'");
}