Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加你喜欢的小说,点了没反应 #50

Open
FynnJason opened this issue Apr 24, 2018 · 2 comments
Open

添加你喜欢的小说,点了没反应 #50

FynnJason opened this issue Apr 24, 2018 · 2 comments

Comments

@FynnJason
Copy link

如题

@newbiechen1024
Copy link
Owner

我没实现,点击事件。。之后加上去

@HoterCyc
Copy link

HoterCyc commented Jul 4, 2018

这个以前改好的不知道是不是你想要的
BookShelfFragment里面;
view.setOnClickListener(
(v) -> {
//设置RxBus回调 //下面是添加的;
//TODO: 2018-01-10 23:22:55 修复:按钮[添加你喜欢的小说]无功能问题 by:Jeremy Cai;
((MainActivity) getActivity()).setCurrentItem(2);
////////2018-01-10 23:22:55 --END///
}

然后在BaseTabActivity添加
//TODO: 2018-01-10 23:22:55 修复:按钮[添加你喜欢的小说]无功能问题 by:Jeremy Cai;
/**
* 选择tab页面;
* @param index 页面编号;
*/
public void setCurrentItem(int index)
{
if(index >= mTlIndicator.getTabCount())return;
mTlIndicator.getTabAt(index).select();
}
//////2018-01-10 23:22:55 --END///

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants