Last active
March 11, 2017 05:22
-
-
Save Logan676/d10680a533605eaf233dd51bcc2fff67 to your computer and use it in GitHub Desktop.
项目最佳实践
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void start(Activity context, BooksBean positionData, ImageView imageView) { | |
Intent intent = new Intent(context, BookDetailActivity.class); | |
intent.putExtra(EXTRA_PARAM, positionData); | |
ActivityOptionsCompat options = | |
ActivityOptionsCompat.makeSceneTransitionAnimation(context, | |
imageView, CommonUtils.getString(R.string.transition_book_img));//与xml文件对应 | |
ActivityCompat.startActivity(context, intent, options.toBundle()); | |
} | |
RxBus.getDefault().toObservable(RxCodeConstants.JUMP_TYPE_TO_ONE, RxBusBaseMessage.class) | |
.subscribe(new Action1<RxBusBaseMessage>() { | |
@Override | |
public void call(RxBusBaseMessage integer) { | |
mBinding.include.vpContent.setCurrentItem(1); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment