本文整理汇总了Java中butterknife.ButterKnife.Finder.findRequiredView方法的典型用法代码示例。如果您正苦于以下问题:Java Finder.findRequiredView方法的具体用法?Java Finder.findRequiredView怎么用?Java Finder.findRequiredView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类butterknife.ButterKnife.Finder
的用法示例。
在下文中一共展示了Finder.findRequiredView方法的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, final 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.wheelDate = (WheelView) finder.castView((View) finder.findRequiredView(source, R
.id.wheel_date, "field 'wheelDate'"), R.id.wheel_date, "field 'wheelDate'");
target.wheelTimeType = (WheelView) finder.castView((View) finder.findRequiredView(source,
R.id.wheel_time_type, "field 'wheelTimeType'"), R.id.wheel_time_type, "field " +
"'wheelTimeType'");
View view = (View) finder.findRequiredView(source, R.id.tv_confirm, "field 'tvConfirm' " +
"and method 'onClick'");
target.tvConfirm = (TextView) finder.castView(view, R.id.tv_confirm, "field 'tvConfirm'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例3: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.progressBar = (ProgressWheel) finder.castView((View) finder.findRequiredView
(source, R.id.progress_bar, "field 'progressBar'"), R.id.progress_bar, "field " +
"'progressBar'");
target.progressLayout = (RelativeLayout) finder.castView((View) finder.findRequiredView
(source, R.id.progress_layout, "field 'progressLayout'"), R.id.progress_layout,
"field 'progressLayout'");
View view = (View) finder.findRequiredView(source, R.id.btn_close, "field 'btnClose' and " +
"method 'onClick'");
target.btnClose = (ImageView) finder.castView(view, R.id.btn_close, "field 'btnClose'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
target.videoView = (VideoView) finder.castView((View) finder.findRequiredView(source, R
.id.video_view, "field 'videoView'"), R.id.video_view, "field 'videoView'");
target.viewPager = (ViewPager) finder.castView((View) finder.findRequiredView(source, R
.id.view_pager, "field 'viewPager'"), R.id.view_pager, "field 'viewPager'");
target.tvIndex = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_index, "field 'tvIndex'"), R.id.tv_index, "field 'tvIndex'");
}
示例4: 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'");
}
示例5: 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'");
}
示例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) {
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);
}
});
}
示例8: 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'");
}
示例9: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.tv_date = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_date, "field 'tv_date'"), R.id.tv_date, "field 'tv_date'");
target.tv_weight = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_weight, "field 'tv_weight'"), R.id.tv_weight, "field 'tv_weight'");
target.tv_bmi = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_bmi, "field 'tv_bmi'"), R.id.tv_bmi, "field 'tv_bmi'");
View view = (View) finder.findRequiredView(source, R.id.iv_weight, "field 'iv_weight' and" +
" method 'onClick'");
target.iv_weight = (ImageView) finder.castView(view, R.id.iv_weight, "field 'iv_weight'");
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.viewBanner = (View) finder.findRequiredView(source, R.id.view_banner, "field " +
"'viewBanner'");
target.viewPager = (ViewPager) finder.castView((View) finder.findRequiredView(source, R
.id.viewpager, "field 'viewPager'"), R.id.viewpager, "field 'viewPager'");
target.mIndicator = (LinePageIndicator) finder.castView((View) finder.findRequiredView
(source, R.id.indicator, "field 'mIndicator'"), R.id.indicator, "field " +
"'mIndicator'");
target.tlTab = (TabLayout) finder.castView((View) finder.findRequiredView(source, R.id
.tl_tab, "field 'tlTab'"), R.id.tl_tab, "field 'tlTab'");
}
示例11: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.iv_photo = (PhotoView) finder.castView((View) finder.findRequiredView(source, R.id
.iv_photo, "field 'iv_photo'"), R.id.iv_photo, "field 'iv_photo'");
target.tv_message = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_message, "field 'tv_message'"), R.id.tv_message, "field 'tv_message'");
target.tv_calory = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_calory, "field 'tv_calory'"), R.id.tv_calory, "field 'tv_calory'");
target.tv_name = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_name, "field 'tv_name'"), R.id.tv_name, "field 'tv_name'");
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.ll_bingo_estimate = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.ll_bingo_estimate, "field 'll_bingo_estimate'"), R.id
.ll_bingo_estimate, "field 'll_bingo_estimate'");
target.view_divide_name = (View) finder.findRequiredView(source, R.id.view_divide_name,
"field 'view_divide_name'");
target.view_divide_estimate = (View) finder.findRequiredView(source, R.id
.view_divide_estimate, "field 'view_divide_estimate'");
target.view_divide_messsage = (View) finder.findRequiredView(source, R.id
.view_divide_messsage, "field 'view_divide_messsage'");
((View) finder.findRequiredView(source, R.id.rl_delete, "method 'onClick'"))
.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例12: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.tvNiceTitle = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_nice_title, "field 'tvNiceTitle'"), R.id.tv_nice_title, "field " +
"'tvNiceTitle'");
target.llCover = (LinearLayout) finder.castView((View) finder.findRequiredView(source, R
.id.ll_cover, "field 'llCover'"), R.id.ll_cover, "field 'llCover'");
target.tvDescOne = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_desc_one, "field 'tvDescOne'"), R.id.tv_desc_one, "field 'tvDescOne'");
target.tvDescTwo = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_desc_two, "field 'tvDescTwo'"), R.id.tv_desc_two, "field 'tvDescTwo'");
target.tvDescThree = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_desc_three, "field 'tvDescThree'"), R.id.tv_desc_three, "field " +
"'tvDescThree'");
target.tvDescFour = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_desc_four, "field 'tvDescFour'"), R.id.tv_desc_four, "field 'tvDescFour'");
target.tvNicePrice = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_nice_price, "field 'tvNicePrice'"), R.id.tv_nice_price, "field " +
"'tvNicePrice'");
target.vLine = (View) finder.findRequiredView(source, R.id.v_line, "field 'vLine'");
View view = (View) finder.findRequiredView(source, R.id.bt_buy, "field 'btBuy' and method" +
" 'onClick'");
target.btBuy = (Button) finder.castView(view, R.id.bt_buy, "field 'btBuy'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick();
}
});
target.llBuyDesc = (LinearLayout) finder.castView((View) finder.findRequiredView(source,
R.id.ll_buy_desc, "field 'llBuyDesc'"), R.id.ll_buy_desc, "field 'llBuyDesc'");
target.tvRenewDesc = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_renew_desc, "field 'tvRenewDesc'"), R.id.tv_renew_desc, "field " +
"'tvRenewDesc'");
}
示例13: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.txtTitle = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.txt_title, "field 'txtTitle'"), R.id.txt_title, "field 'txtTitle'");
target.txtMsg = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.txt_msg, "field 'txtMsg'"), R.id.txt_msg, "field 'txtMsg'");
View view = (View) finder.findRequiredView(source, R.id.btn_pos, "field 'btnPos' and " +
"method 'onClick'");
target.btnPos = (Button) finder.castView(view, R.id.btn_pos, "field 'btnPos'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}
示例14: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.layout = (View) finder.findRequiredView(source, R.id.item_mention_layout, "field " +
"'layout'");
target.ivMention = (ImageView) finder.castView((View) finder.findRequiredView(source, R
.id.iv_mention, "field 'ivMention'"), R.id.iv_mention, "field 'ivMention'");
target.tvMentionName = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_mention_name, "field 'tvMentionName'"), R.id.tv_mention_name, "field " +
"'tvMentionName'");
target.tvMentionInfo = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_mention_info, "field 'tvMentionInfo'"), R.id.tv_mention_info, "field " +
"'tvMentionInfo'");
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:13,代码来源:MentionRecyclerAdapter$ViewHolder$$ViewInjector.java
示例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'");
target.commentEdit = (EditText) finder.castView((View) finder.findRequiredView(source, R
.id.et_comment, "field 'commentEdit'"), R.id.et_comment, "field 'commentEdit'");
View view = (View) finder.findRequiredView(source, R.id.btn_comment, "field 'commentBtn' " +
"and method 'onClick'");
target.commentBtn = (Button) finder.castView(view, R.id.btn_comment, "field 'commentBtn'");
view.setOnClickListener(new DebouncingOnClickListener() {
public void doClick(View p0) {
target.onClick(p0);
}
});
}