package Ġp wj . study . recyclerview Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . support . annotation . Int Def Ċ import Ġandroid . support . v 7 . widget . RecyclerView Ċ import Ġandroid . util . Attribute Set Ċ import Ġandroid . view . View Configuration Ċ import Ġp wj . study . recyclerview . horizontal . Swipe Direction . LEFT _ DIRECTION Ċ import Ġp wj . study . recyclerview . horizontal . Swipe Direction . RIGHT _ DIRECTION Ċ import Ġjava . lang . annotation . Retention Ċ import Ġjava . lang . annotation . RetentionPolicy Ċ Ċ open Ġclass ĠSw ipe RecyclerView ( context : ĠContext , Ġattrs : ĠAttributeSet ? Ġ= Ġnull , Ġdef Style : ĠInt Ġ= Ġ 0 ) Ġ: ĠRecyclerView ( context , Ġattrs , Ġdef Style ) Ġ{ ĊĊĠĠĠ Ġ@ Int Def ( LEFT _ DIRECTION , ĠRIGHT _ DIRECTION ) ĊĠĠĠ Ġ@ Retention ( RetentionPolicy . SOURCE ) ĊĠĠĠ Ġannotation Ġclass ĠDirection Mode ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠInvalid Ġposition . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġprivate Ġval ĠINVALID _ POSITION Ġ= Ġ- 1 ĊĊĠĠĠ Ġprotected Ġval Ġm Scale Touch S lop : ĠInt Ġ= ĠView Configuration . get ( getContext ()). scaled Touch S lop ĊĊ Ċ }