package Ġcom . gs ri kar . image load library . ui . main Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġcom . gs ri kar . image load library . R Ċ import Ġkotlinx . android . synt hetic . main . main _ fragment .* Ċ Ċ class ĠMain Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġnew Instance () Ġ= ĠMain Fragment () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġadapter Ġ= ĠPhoto Adapter ( ĊĠĠĠĠĠĠĠ Ġarray ListOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 3 / 3 1 / 1 4 / 3 8 / h oll and - 4 0 9 3 2 3 4 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 6 / 0 9 / 0 2 / 0 8 / 3 2 / cub a - 1 6 3 8 5 9 4 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 6 / 2 2 / 0 8 / 1 0 / state - of - the - union - 4 2 9 1 0 9 8 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 8 / 0 5 / 0 3 / 0 9 / 5 6 / ind ia - 3 3 7 0 9 3 0 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 5 / 1 5 / 0 3 / sun flower - 4 3 3 9 5 8 0 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 7 / 1 0 / 1 3 / mus k - be et le - 4 3 4 3 5 6 4 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 6 / 1 2 / 2 1 / 0 9 / ocean - 4 2 7 0 2 4 9 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 7 / 0 6 / 2 2 / 2 3 / 4 0 / pick ing - flow ers - 2 4 3 2 9 7 2 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 4 / 0 3 / 1 4 / 1 1 / 1 7 / d ancer - 2 8 7 0 7 8 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 6 / 1 6 / 4 1 / g az tel ug at ze - 4 3 4 2 2 4 2 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 6 / 1 4 / 0 6 / 0 8 / ut ah - 4 2 7 2 9 3 8 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 6 / 1 2 / 1 1 / 0 9 / mood - 4 2 6 9 0 4 0 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 3 / 2 0 / 4 9 / bi ke - 4 3 3 5 6 8 1 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 6 / 1 6 / 4 1 / sea - 4 3 4 2 2 4 1 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 6 / 0 6 / 0 4 / sp arrow - 4 3 4 1 1 2 3 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 8 / 1 1 / 5 5 / black bird - 4 3 4 6 2 4 4 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 8 / 1 2 / 0 6 / green - fields - 4 3 4 6 2 6 3 _ 9 6 0 _ 7 2 0 . jpg ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" https :// cdn . pix ab ay . com / photo / 2 0 1 9 / 0 7 / 1 5 / 1 7 / 1 3 / flower - 4 3 3 9 9 3 2 _ 9 6 0 _ 7 2 0 . jpg " ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( ĊĠĠĠĠĠĠĠ Ġinflater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĊĠĠĠĠĠĠĠ ĠsavedInstanceState : ĠBundle ? ĊĠĠĠ Ġ): ĠView Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġinflater . inflate ( R . layout . main _ fragment , Ġcontainer , Ġfalse ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Activity Created ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Activity Created ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ Ġset Adapter () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġset Adapter () Ġ{ ĊĠĠĠĠĠĠĠ Ġimage RecyclerView . adapter Ġ= Ġadapter ĊĠĠĠ Ġ} Ċ Ċ } Ċ