@Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_rxlifecycle);
        ButterKnife.bind(this);

        initData();
    }
compile 'com.trello.rxlifecycle2:rxlifecycle-components:2.1.0'
Created by yangle on 2017/7/4.
RxLifecycleDemo/app/src/main/java/com/yl/rxlifecycledemo/RxLifecycleComponentsActivity.java