package Ġcom . example . health Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . widget . ListView Ċ Ċ class ĠC ov id Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ covid ) ĊĊĠĠĠĠĠĠĠ Ġvar Ġlist view Ġ= ĠfindViewById < ListView >( R . id . list view ) ĊĠĠĠĠĠĠĠ Ġvar Ġlist Ġ= Ġmutable ListOf < Model >() ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" Bang al ore ", Ġ" B ow ring ĠMedical ĠCollege "," Sh iv aj in ag ara , ĠB eng al uru Ġ- Ġ 5 6 0 0 0 1 "," Number Ġof ĠB eds Ġ= Ġ 2 6 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" Bag alk ote "," District ĠHo spital "," DH ĠNav an ag ar ĠBag alk ot "," Number Ġof ĠB eds Ġ= Ġ 2 5 7 " Ġ)) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" Ball ari "," District ĠHo spital "," Modal iar ĠDH ĠR aj k umar ĠRoad , ĠS ang am ĠCircle "," Number Ġof ĠB eds Ġ= Ġ 2 1 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" Bang al ore "," RR ĠMedical ĠCollege "," K enger i , ĠB eng al uru "," Number Ġof ĠB eds Ġ= Ġ 8 0 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" Bang al ore "," V ict oria ĠHo spital "," BM CR I ĠFort ĠRoad Ġnear Ġcity Ġmarket , ĠB eng al uru "," Number Ġof ĠB eds Ġ= Ġ 9 0 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" D av ang ere "," Ch ig ater i ĠHo spital "," PJ ĠExtension , ĠSh am nur ĠRoad , ĠD av ang ere "," Number Ġof ĠB eds Ġ= Ġ 9 3 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" G ad ag "," G IM S "," M all as am ud ra ĠMul ag und ĠRoad ĠG ad ag "," Number Ġof ĠB eds Ġ= Ġ 2 5 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" H ass an "," H IM S "," City Ġcentre , ĠH ass an "," Number Ġof ĠB eds Ġ= Ġ 7 5 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" K od ag u "," K IM S , ĠK od ag u "," Near ĠT oll ĠGate , ĠK od ag u "," Number Ġof ĠB eds Ġ= Ġ 3 0 0 ")) ĊĠĠĠĠĠĠĠ Ġlist . add ( Model (" M ys ore "," District ĠHo spital "," Ed ĠHo spital ĠPer em ises , ĠMet gal li , ĠM ys ore "," Number Ġof ĠB eds Ġ= Ġ 3 0 0 ")) ĊĊĊĊĠĠĠĠĠĠĠ Ġlist view . adapter Ġ= ĠMy ListAdapter ( this , ĠR . layout . ho sp it als , Ġlist ) ĊĠĠĠĠĠĠĠ Ġlist view . setOn ItemClickListener Ġ{ Ġparent , Ġview , Ġposition , Ġid Ġ-> Ġ} ĊĠĠĠ Ġ} Ċ }