package Ġcom . example . earth quake app Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . widget . ListView Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĊĠĠĠĠĠĠĠ Ġval ĠArray ad p ater : Information adapter ; ĊĠĠĠĠĠĠĠ Ġval Ġinformation Ġ= ĠArrayList < Information >() ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 5 . 0 "," 3 9 km ĠW ĠOF "," Al mat y , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . color _ ree ed )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 4 . 0 "," 5 5 km ĠS ĠOF "," K ok she tau , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . circle _ orange )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 2 . 0 "," 4 0 km ĠW ĠOF "," K ost an ay , K az ak hs atan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . circle _ yellow )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 3 . 0 "," 3 8 km ĠE ĠOF "," Kar ag andy , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . circle _ orange )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 4 . 0 "," 3 9 km ĠN ĠOF "," A ty ra u , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . circle _ orange )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 1 . 0 "," 3 5 km ĠS ĠOF "," Ak tau , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . circle _ yellow )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 9 . 0 "," 5 1 km ĠW ĠOF "," U sk em en , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . color _ ree ed )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 5 . 0 "," 2 1 km ĠW ĠOF "," Z he zk az gan , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . color _ ree ed )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 7 . 5 "," 3 3 km ĠW ĠOF "," Ek ib ast uz , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . color _ ree ed )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 5 . 0 "," 3 1 km ĠW ĠOF "," P av lo dar , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . color _ ree ed )) ĊĠĠĠĠĠĠĠ Ġinformation . add ( Information (" 3 . 0 "," 3 4 km ĠW ĠOF "," Ast ana , K az ak h stan "," Oct Ġ 0 5 , 2 0 2 2 "," 5 : 1 1 pm ", R . drawable . circle _ orange )) ĊĠĠĠĠĠĠĠ Ġval ĠlistView Ġ= ĠfindViewById < ListView >( R . id . list View ) ĊĠĠĠĠĠĠĠ ĠArray ad p ater Ġ= ĠInformation adapter ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinformation , ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ ĠlistView . adapter = ĠArray ad p ater ĊĊĊĊĠĠĠ Ġ} Ċ }