Class InputIconsRecyclerAdapter


  • public class InputIconsRecyclerAdapter
    extends androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
    • Method Detail

      • getItemViewType

        public int getItemViewType​(int position)
        Overrides:
        getItemViewType in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
      • onCreateViewHolder

        public androidx.recyclerview.widget.RecyclerView.ViewHolder onCreateViewHolder​(ViewGroup parent,
                                                                                       int viewType)
        Specified by:
        onCreateViewHolder in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
      • onBindViewHolder

        public void onBindViewHolder​(androidx.recyclerview.widget.RecyclerView.ViewHolder viewHolder,
                                     int position)
        Specified by:
        onBindViewHolder in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
      • getItemCount

        public int getItemCount()
        Specified by:
        getItemCount in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
      • getSelectedInput

        @Nullable
        public Input getSelectedInput()
      • selectInput

        public boolean selectInput​(Input input,
                                   boolean showKeyboard,
                                   boolean animateEditText)
        Parameters:
        input - input that should be selected.
        showKeyboard - true if the keyboard should be force shown.
        animateEditText - if there is an editText inform the input if it should animate that in.
        Returns:
        true if input was newly selected or false otherwise
      • deselectAllInputs

        public void deselectAllInputs()
      • hideAllInputsExcept

        public void hideAllInputsExcept​(List<String> visibleInputIdentifiers)
      • showAllInputs

        public void showAllInputs()