本文整理汇总了Java中butterknife.ButterKnife.Finder.castView方法的典型用法代码示例。如果您正苦于以下问题:Java Finder.castView方法的具体用法?Java Finder.castView怎么用?Java Finder.castView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类butterknife.ButterKnife.Finder
的用法示例。
在下文中一共展示了Finder.castView方法的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.tvTime = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_time, "field 'tvTime'"), R.id.tv_time, "field 'tvTime'");
target.tvCourseName = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_course_name, "field 'tvCourseName'"), R.id.tv_course_name, "field " +
"'tvCourseName'");
target.ivCourseStatus = (ImageView) finder.castView((View) finder.findRequiredView
(source, R.id.iv_course_status, "field 'ivCourseStatus'"), R.id.iv_course_status,
"field 'ivCourseStatus'");
target.dailyCourseStatusLayout = (RelativeLayout) finder.castView((View) finder
.findRequiredView(source, R.id.daily_course_status_layout, "field " +
"'dailyCourseStatusLayout'"), R.id.daily_course_status_layout, "field " +
"'dailyCourseStatusLayout'");
target.dailyCourseContainer = (RelativeLayout) finder.castView((View) finder
.findRequiredView(source, R.id.daily_course_container, "field " +
"'dailyCourseContainer'"), R.id.daily_course_container, "field " +
"'dailyCourseContainer'");
target.bgLayout = (RelativeLayout) finder.castView((View) finder.findRequiredView(source,
R.id.bg_layout, "field 'bgLayout'"), R.id.bg_layout, "field 'bgLayout'");
target.tvBig = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_big, "field 'tvBig'"), R.id.tv_big, "field 'tvBig'");
}
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:23,代码来源:CourseRecyclerAdapter$ViewHolder$$ViewInjector.java
示例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, 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'");
}
示例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.tvIngredient = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_ingredient, "field 'tvIngredient'"), R.id.tv_ingredient, "field " +
"'tvIngredient'");
target.tvContent = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_content, "field 'tvContent'"), R.id.tv_content, "field 'tvContent'");
target.tvPercent = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_percent, "field 'tvPercent'"), R.id.tv_percent, "field 'tvPercent'");
target.tvIndicate = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_indicate, "field 'tvIndicate'"), R.id.tv_indicate, "field 'tvIndicate'");
target.viewIndicate = (ImageView) finder.castView((View) finder.findRequiredView(source,
R.id.view_indicate, "field 'viewIndicate'"), R.id.view_indicate, "field " +
"'viewIndicate'");
}
示例7: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.pullRefreshLayout = (PullToRefreshListView) finder.castView((View) finder
.findRequiredView(source, R.id.listview, "field 'pullRefreshLayout'"), R.id
.listview, "field 'pullRefreshLayout'");
target.tvHint = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.favorite_hint, "field 'tvHint'"), R.id.favorite_hint, "field 'tvHint'");
}
示例8: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.tabLayout = (TabLayout) finder.castView((View) finder.findRequiredView(source, R
.id.tab_layout, "field 'tabLayout'"), R.id.tab_layout, "field 'tabLayout'");
target.tvTotalCalory = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_total_calory, "field 'tvTotalCalory'"), R.id.tv_total_calory, "field " +
"'tvTotalCalory'");
target.tvTrainTime = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_train_time, "field 'tvTrainTime'"), R.id.tv_train_time, "field " +
"'tvTrainTime'");
target.tvContinueDay = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_continue_day, "field 'tvContinueDay'"), R.id.tv_continue_day, "field " +
"'tvContinueDay'");
}
示例9: 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'");
}
示例10: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.mPullListView = (PullToRefreshListView) finder.castView((View) finder
.findRequiredView(source, R.id.listview, "field 'mPullListView'"), R.id.listview,
"field 'mPullListView'");
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);
}
});
}
示例11: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.tvGoods = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_goods, "field 'tvGoods'"), R.id.tv_goods, "field 'tvGoods'");
target.tvPrice = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_price, "field 'tvPrice'"), R.id.tv_price, "field 'tvPrice'");
target.etAccount = (EditText) finder.castView((View) finder.findRequiredView(source, R.id
.et_account, "field 'etAccount'"), R.id.et_account, "field 'etAccount'");
target.etReason = (EditText) finder.castView((View) finder.findRequiredView(source, R.id
.et_reason, "field 'etReason'"), R.id.et_reason, "field 'etReason'");
target.tvCommit = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_commit, "field 'tvCommit'"), R.id.tv_commit, "field 'tvCommit'");
target.rlAccount = (RelativeLayout) finder.castView((View) finder.findRequiredView
(source, R.id.rl_account, "field 'rlAccount'"), R.id.rl_account, "field " +
"'rlAccount'");
target.tvReasonTitle = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_reason_title, "field 'tvReasonTitle'"), R.id.tv_reason_title, "field " +
"'tvReasonTitle'");
target.tvGoodsTitle = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_goods_title, "field 'tvGoodsTitle'"), R.id.tv_goods_title, "field " +
"'tvGoodsTitle'");
target.tvAccountTitle = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_account_title, "field 'tvAccountTitle'"), R.id.tv_account_title, "field " +
"'tvAccountTitle'");
target.tvPriceTitle = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_price_title, "field 'tvPriceTitle'"), R.id.tv_price_title, "field " +
"'tvPriceTitle'");
}
示例12: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.sv_main = (ScrollView) finder.castView((View) finder.findRequiredView(source, R.id
.sv_main, "field 'sv_main'"), R.id.sv_main, "field 'sv_main'");
target.ll_card_breakfast = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.ll_card_breakfast, "field 'll_card_breakfast'"), R.id
.ll_card_breakfast, "field 'll_card_breakfast'");
target.ll_card_snacks_breakfast = (LinearLayout) finder.castView((View) finder
.findRequiredView(source, R.id.ll_card_snacks_breakfast, "field " +
"'ll_card_snacks_breakfast'"), R.id.ll_card_snacks_breakfast, "field " +
"'ll_card_snacks_breakfast'");
target.ll_card_lunch = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.ll_card_lunch, "field 'll_card_lunch'"), R.id.ll_card_lunch, "field" +
" 'll_card_lunch'");
target.ll_card_snacks_lunch = (LinearLayout) finder.castView((View) finder
.findRequiredView(source, R.id.ll_card_snacks_lunch, "field " +
"'ll_card_snacks_lunch'"), R.id.ll_card_snacks_lunch, "field " +
"'ll_card_snacks_lunch'");
target.ll_card_dinner = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.ll_card_dinner, "field 'll_card_dinner'"), R.id.ll_card_dinner,
"field 'll_card_dinner'");
target.ll_card_snacks_dinner = (LinearLayout) finder.castView((View) finder
.findRequiredView(source, R.id.ll_card_snacks_dinner, "field " +
"'ll_card_snacks_dinner'"), R.id.ll_card_snacks_dinner, "field " +
"'ll_card_snacks_dinner'");
target.ll_card_sport = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.ll_card_sport, "field 'll_card_sport'"), R.id.ll_card_sport, "field" +
" 'll_card_sport'");
target.tv_diet_calory = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_diet_calory, "field 'tv_diet_calory'"), R.id.tv_diet_calory, "field " +
"'tv_diet_calory'");
target.tv_sport_calory = (TextView) finder.castView((View) finder.findRequiredView
(source, R.id.tv_sport_calory, "field 'tv_sport_calory'"), R.id.tv_sport_calory,
"field 'tv_sport_calory'");
target.tv_date = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_date, "field 'tv_date'"), R.id.tv_date, "field 'tv_date'");
}
示例13: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, final T target, Object source) {
target.ivAvatar = (CircleImageView) finder.castView((View) finder.findRequiredView
(source, R.id.iv_avatar, "field 'ivAvatar'"), R.id.iv_avatar, "field 'ivAvatar'");
target.tvUserName = (TextView) finder.castView((View) finder.findRequiredView(source, R
.id.tv_user_name, "field 'tvUserName'"), R.id.tv_user_name, "field 'tvUserName'");
View view = (View) finder.findRequiredView(source, R.id.btn_upload_pic, "field " +
"'btnUploadPic' and method 'onClick'");
target.btnUploadPic = (TextView) finder.castView(view, R.id.btn_upload_pic, "field " +
"'btnUploadPic'");
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.viewpager = (ViewPager) finder.castView((View) finder.findRequiredView(source, R
.id.viewpager, "field 'viewpager'"), R.id.viewpager, "field 'viewpager'");
target.tv_index = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_index, "field 'tv_index'"), R.id.tv_index, "field 'tv_index'");
target.rl_gallery = (RelativeLayout) finder.castView((View) finder.findRequiredView
(source, R.id.rl_gallery, "field 'rl_gallery'"), R.id.rl_gallery, "field " +
"'rl_gallery'");
}
示例15: inject
import butterknife.ButterKnife.Finder; //导入方法依赖的package包/类
public void inject(Finder finder, T target, Object source) {
target.tvEssentials1 = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_essentials_1, "field 'tvEssentials1'"), R.id.tv_essentials_1, "field " +
"'tvEssentials1'");
target.tvEssentials2 = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_essentials_2, "field 'tvEssentials2'"), R.id.tv_essentials_2, "field " +
"'tvEssentials2'");
target.tvEssentials3 = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_essentials_3, "field 'tvEssentials3'"), R.id.tv_essentials_3, "field " +
"'tvEssentials3'");
target.tvCommonError = (TextView) finder.castView((View) finder.findRequiredView(source,
R.id.tv_common_error, "field 'tvCommonError'"), R.id.tv_common_error, "field " +
"'tvCommonError'");
target.essentials1Layout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.essentials_1_layout, "field 'essentials1Layout'"), R.id
.essentials_1_layout, "field 'essentials1Layout'");
target.essentials2Layout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.essentials_2_layout, "field 'essentials2Layout'"), R.id
.essentials_2_layout, "field 'essentials2Layout'");
target.essentials3Layout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.essentials_3_layout, "field 'essentials3Layout'"), R.id
.essentials_3_layout, "field 'essentials3Layout'");
target.commonErrorLayout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.common_error_layout, "field 'commonErrorLayout'"), R.id
.common_error_layout, "field 'commonErrorLayout'");
target.breathLayout = (LinearLayout) finder.castView((View) finder.findRequiredView
(source, R.id.breath_layout, "field 'breathLayout'"), R.id.breath_layout, "field " +
"'breathLayout'");
target.tvName = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_name, "field 'tvName'"), R.id.tv_name, "field 'tvName'");
target.tvBreath = (TextView) finder.castView((View) finder.findRequiredView(source, R.id
.tv_breath, "field 'tvBreath'"), R.id.tv_breath, "field 'tvBreath'");
}