Search in sources :

Example 1 with AfterViews

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);
}
Also used : DateFormat(java.text.DateFormat) AfterViews(org.androidannotations.annotations.AfterViews)

Example 2 with AfterViews

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);
}
Also used : FixedPagerAdapter(com.chinaztt.fda.adapter.base.FixedPagerAdapter) AfterViews(org.androidannotations.annotations.AfterViews)

Example 3 with AfterViews

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);
}
Also used : LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) AfterViews(org.androidannotations.annotations.AfterViews)

Aggregations

AfterViews (org.androidannotations.annotations.AfterViews)3 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 FixedPagerAdapter (com.chinaztt.fda.adapter.base.FixedPagerAdapter)1 DateFormat (java.text.DateFormat)1