![]() ![]() There are 30 elements in GENERIC_MESSAGE_LIST. Note: that the third parameter must not provide a list of size of more than the tabs count of the. Call attach on the mediator object to start syncing. The third parameter is a list of indices of the RecyclerView items that you wish to be syncing with tabs. GENERIC_MESSAGE_LIST = (ArrayList) intent.getExtras().getParcelableArrayList(ConversationsAdapter.EXTRA_MESSAGE) conversationView = (RecyclerView) findViewById(R.id.list_messages) tHasFixedSize(true) conversationViewLayoutManager = new LinearLayoutManager(this) tLayoutManager(conversationViewLayoutManager) conversationViewAdapter = new ConversationAdapter(GENERIC_MESSAGE_LIST, this) tAdapter(conversationViewAdapter) ĬonversationView.scrollTo(.) throws an exception about being not supported in RecyclerView, and conversationView.scrollToPosition(.) doesn't seem to do anything.Īfter the above block of code, I added conversationView.scrollToPosition(GENERIC_MESSAGE_LIST.size() + 1) The first two parameters are the RecyclerView and TabLayout that you wish to be synced. I'd like to scroll to the bottom of the RecyclerView list after loading the activity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |