package Ġcom . gather ing hall stud ios . m hw or l dd atabase . features . workshop . selectors Ċ Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . gather ing hall stud ios . m hw or l dd atabase . adapters . common . Simple RecyclerView Adapter Ċ import Ġcom . gather ing hall stud ios . m hw or l dd atabase . adapters . common . Simple ViewHolder Ċ import Ġcom . gather ing hall stud ios . m hw or l dd atabase . components . Expand able Card View Ċ import Ġcom . gather ing hall stud ios . m hw or l dd atabase . data . models . Armor Full Ċ import Ġcom . gather ing hall stud ios . m hw or l dd atabase . features . workshop . User Equipment Card ĊĊ Ċ class ĠWork shop Armor Selector Adapter ( private Ġval Ġon Selected : Ġ( Armor Full ) Ġ-> ĠUnit ) Ġ: ĠSimple RecyclerView Adapter < Armor Full >() Ġ{ ĊĊĠĠĠ Ġval ĠTAG Ġ= Ġthis . java Class . simple Name ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( parent : ĠViewGroup ): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠExpand able Card View ( parent . context ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġbind View ( view Holder : ĠSimple ViewHolder , Ġdata : ĠArm or Full ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcard Ġ= ĠUser Equipment Card ( view Holder . item View Ġas ĠExpand able Card View ) ĊĠĠĠĠĠĠĠ Ġcard . bind Armor ( data , ĠonClick Ġ= Ġ{ Ġon Selected ( data ) Ġ}, Ġon Swipe Right Ġ= Ġnull ) ĊĠĠĠĠĠĠĠ Ġcard . populate Slots ( data . armor . slots ) ĊĠĠĠ Ġ} Ċ } Ċ