0
我用儿童的片段,我创建动态视图父片段和布局创造机器人的多种动态视图和我的片段,但我不能结合使用Butterknife这些动态的观点来绑定动态视图。如何使用butterknife
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
this is the on create
// Inflate the layout for this fragment
View view = super.onCreateView(inflater, container, savedInstanceState); this.container.addView(inflater.inflate(R.layout.overall_sport_performance_row, null), 5);
我在overall_sport_performance布局一个TextView的,我想使用,使用butterknife
你有什么试过,直到现在呢?尝试重写onViewCreated并添加此“ButterKnife.bind(这一点,图)。”在那个方法 –