ViewUsersModalSheetFragment

public class ViewUsersModalSheetFragment extends BottomSheetDialogFragment

Created By Drew Gregory on 03/30/18. This shows the subscribed users in the network using a modal bottom sheet https://material.io/guidelines/components/bottom-sheets.html#bottom-sheets-modal-bottom-sheets Also, inspiration from the following blog posts: - https://android-developers.googleblog.com/2016/02/android-support-library-232.html - https://code.tutsplus.com/articles/how-to-use-bottom-sheets-with-the-design-support-library–cms-26031

Fields

USER_NAMES

public static final String USER_NAMES

Keys for values passed as arguments to the fragment

queue

RequestQueue queue

Queue for asynchronous tasks

Methods

setupDialog

public void setupDialog(Dialog dialog, int style)

Create and configure View from R.layout.rv_container. Populate the fields in that View with the result of API.Get.networkUsers(RequestQueue,long,Response.Listener)

Parameters:
  • dialogDialog whose contents will be set using the View inflated from R.layout.rv_container
  • style – Not used