use of com.example.jingbin.cloudreader.http.rx.RxBusBaseMessage in project CloudReader by youlookwhat.
the class EverydayFragment method initLocalSetting.
private void initLocalSetting() {
mEverydayModel.setData(getTodayTime().get(0), getTodayTime().get(1), getTodayTime().get(2));
// DebugUtil.error("" + year + month + day);
// 显示日期,去掉第一位的"0"
mHeaderBinding.includeEveryday.tvDailyText.setText(getTodayTime().get(2).indexOf("0") == 0 ? getTodayTime().get(2).replace("0", "") : getTodayTime().get(2));
mHeaderBinding.includeEveryday.ibXiandu.setOnClickListener(new PerfectClickListener() {
@Override
protected void onNoDoubleClick(View v) {
WebViewActivity.loadUrl(v.getContext(), "https://gank.io/xiandu", "加载中...");
}
});
mHeaderBinding.includeEveryday.ibMovieHot.setOnClickListener(new PerfectClickListener() {
@Override
protected void onNoDoubleClick(View v) {
RxBus.getDefault().post(RxCodeConstants.JUMP_TYPE_TO_ONE, new RxBusBaseMessage());
}
});
}
Aggregations