package Ġcom . github . vip ulas ri . timeline view . sample . example Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġandroidx . recyclerview . widget . RecyclerView Ċ import Ġcom . github . vip ulas ri . timeline view . sample . Base Activity Ċ import Ġcom . github . vip ulas ri . timeline view . sample . R Ċ import Ġcom . github . vip ulas ri . timeline view . sample . model . Order Status Ċ import Ġcom . github . vip ulas ri . timeline view . sample . model . Time Line Model Ċ import Ġkotlinx . android . synt hetic . main . activity _ example .* Ċ import Ġjava . util . ArrayList Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠVip ul ĠAs ri Ġon Ġ 1 3 - 1 2 - 2 0 1 8 . Ċ Ġ*/ Ċ class ĠExample Activity Ġ: ĠBase Activity () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġm Adapter : ĠExample Time Line Adapter ĊĠĠĠ Ġprivate Ġval Ġm DataList Ġ= ĠArrayList < Time Line Model >() ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġm LayoutManager : ĠLinearLayoutManager ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ example ) ĊĊĠĠĠĠĠĠĠ Ġset Activity Title ( getString ( R . string . activity _ example _ label )) ĊĠĠĠĠĠĠĠ Ġis Display Home As Up Enabled Ġ= Ġtrue ĊĊĠĠĠĠĠĠĠ Ġset DataList Items () ĊĠĠĠĠĠĠĠ Ġinit RecyclerView () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġset DataList Items () Ġ{ ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Item Ġsuccessfully Ġdelivered ", Ġ"", ĠOrder Status . IN ACTIVE )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Courier Ġis Ġout Ġto Ġdelivery Ġyour Ġorder ", Ġ" 2 0 1 7 - 0 2 - 1 2 Ġ 0 8 : 0 0 ", ĠOrder Status . ACTIVE )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Item Ġhas Ġreached Ġcour ier Ġfacility Ġat ĠNew ĠDel hi ", Ġ" 2 0 1 7 - 0 2 - 1 1 Ġ 2 1 : 0 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Item Ġhas Ġbeen Ġgiven Ġto Ġthe Ġcour ier ", Ġ" 2 0 1 7 - 0 2 - 1 1 Ġ 1 8 : 0 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Item Ġis Ġpacked Ġand Ġwill Ġdispatch Ġsoon ", Ġ" 2 0 1 7 - 0 2 - 1 1 Ġ 0 9 : 3 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Order Ġis Ġbeing Ġread ied Ġfor Ġdispatch ", Ġ" 2 0 1 7 - 0 2 - 1 1 Ġ 0 8 : 0 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Order Ġprocessing Ġinitiated ", Ġ" 2 0 1 7 - 0 2 - 1 0 Ġ 1 5 : 0 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Order Ġconfirmed Ġby Ġsell er ", Ġ" 2 0 1 7 - 0 2 - 1 0 Ġ 1 4 : 3 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠĠĠĠĠ Ġm DataList . add ( Time Line Model (" Order Ġplaced Ġsuccessfully ", Ġ" 2 0 1 7 - 0 2 - 1 0 Ġ 1 4 : 0 0 ", ĠOrder Status . COMPLETED )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit RecyclerView () Ġ{ ĊĠĠĠĠĠĠĠ Ġm LayoutManager Ġ= ĠLinearLayoutManager ( this , ĠRecyclerView . VERTICAL , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġre cyclerView . layout Manager Ġ= Ġm LayoutManager ĊĠĠĠĠĠĠĠ Ġm Adapter Ġ= ĠExample Time Line Adapter ( m DataList ) ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter Ġ= Ġm Adapter ĊĠĠĠ Ġ} Ċ Ċ } Ċ