package Ġcom . yy . mobile . sl id able layout Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġkotlinx . android . synt hetic . main . activity _ demo _ h orizontally .* Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġ å¼ł å® ĩ Ġon Ġ 2 0 1 9 - 1 0 - 2 2 . Ċ Ġ* ĠE - mail : Ġz hang yu 4 @ yy . com Ċ Ġ* ĠYY : Ġ 9 0 9 0 1 7 4 2 8 Ċ Ġ*/ Ċ class ĠDemo For Loop H orizontally Ġ: ĠDemo For Loop () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ demo _ h orizontally ) ĊĠĠĠĠĠĠĠ Ġsl id able _ layout _ horizontal . setAdapter ( create Adapter ( data List )) ĊĠĠĠĠĠĠĠ Ġrequest Data And AddTo Adapter ( false ) ĊĠĠĠ Ġ} Ċ }