use of org.androidannotations.annotations.AfterViews in project androidannotations by androidannotations.
the class ActivityWithRoboGuice method updateCaption.
@AfterViews
void updateCaption() {
DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG, Locale.US);
String formattedDate = dateFormat.format(date);
injectedTextView.setText(caption + " - " + formattedDate);
}
use of org.androidannotations.annotations.AfterViews in project FastDev4Android by jiangqqlmj.
the class MainInfoFragment method initDatas.
@AfterViews
public void initDatas() {
fragments = new ArrayList<>();
fragments.add(new OneFragment());
fragments.add(new TwoFragment());
fragments.add(new ThreeFragment());
fragments.add(new FourFragment());
mPagerAdater = new FixedPagerAdapter(getChildFragmentManager());
mPagerAdater.setFragments(fragments);
info_viewpager.setAdapter(mPagerAdater);
id_indicator.setViewPager(info_viewpager, 0);
}
use of org.androidannotations.annotations.AfterViews in project FastDev4Android by jiangqqlmj.
the class RecyclerViewAAActivity method initViews.
@AfterViews
public void initViews() {
top_bar_title.setText("RecyclerView集合AA注入框架实例");
//进行设置RecyerView ,并且绑定数据
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
linearLayoutManager.setOrientation(OrientationHelper.VERTICAL);
aa_recyclerview.setLayoutManager(linearLayoutManager);
adapter.setItems(userFinder.findAll());
aa_recyclerview.setAdapter(adapter);
}
Aggregations