package Ġcom . yang . module _ mine . ui . obtain . activity Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . recyclerview . widget . Linear LayoutManager Ċ import Ġcom . alibaba . android . ar outer . facade . annotation . Route Ċ import Ġcom . yang . lib _ common . base . ui . activity . Base Activity Ċ import Ġcom . yang . lib _ common . constant . App Constant Ċ import Ġcom . yang . lib _ common . util . build AR outer Ċ import Ġcom . yang . lib _ common . widget . Common ToolBar Ċ import Ġcom . yang . module _ mine . R Ċ import Ġcom . yang . module _ mine . adapter . Mine Shipping Address Adapter Ċ import Ġcom . yang . module _ mine . data . Mine Shipping Address Data Ċ import Ġkotlinx . android . synt hetic . main . act _ mine _ sh apping _ address .* Ċ Ċ /** Ċ Ġ* Ġ@ Author ĠAdministrator Ċ Ġ* Ġ@ ClassName ĠM ine Shipping Address Ċ Ġ* Ġ@ Description Ġ æĪĳçļĦ æĶ¶ è´§ åľ°åĿĢ Ċ Ġ* Ġ@ Date Ġ 2 0 2 1 / 9 / 2 6 Ġ 1 1 : 4 5 Ċ Ġ*/ Ċ @ Route ( path Ġ= ĠApp Constant . Route Path . M INE _ ADDRESS _ ACTIVITY ) Ċ class ĠM ine Address Activity : Base Activity () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġm Adapter : ĠM ine Shipping Address Adapter ĊĊĠĠĠ Ġoverride Ġfun Ġget Layout (): ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠR . layout . act _ mine _ sh apping _ address ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit Data () Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit View () Ġ{ ĊĠĠĠĠĠĠĠ Ġinit RecyclerView () ĊĠĠĠĠĠĠĠ Ġcommon ToolBar . t V Right CallBack Ġ= Ġobject Ġ: Common ToolBar . TV Right CallBack { ĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġtv Right ClickListener () Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbuild AR outer ( App Constant . Route Path . M INE _ ADD _ ADDRESS _ ACTIVITY ). navigation () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit ViewModel () Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit RecyclerView (){ ĊĠĠĠĠĠĠĠ Ġm Adapter Ġ= ĠM ine Shipping Address Adapter ( R . layout . item _ mine _ shipping _ address , Ġmutable ListOf < Mine Shipping Address Data >(). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadd ( Mine Shipping Address Data (" 1 "," æ¹ ĸ åĮĹ çľģ æŃ¦ æ±ī å¸Ĥ æŃ¦ æĺ Į åĮº æ¹ ĸ åĮĹ å¤§åŃ¦ "," å¼ł ä¸ī "," 1 2 3 4 5 7 8 5 2 3 6 ", true )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadd ( Mine Shipping Address Data (" 1 "," æ¹ ĸ åĮĹ çľģ æŃ¦ æ±ī å¸Ĥ æŃ¦ æĺ Į åĮº æ¹ ĸ åĮĹ å¤§åŃ¦ "," éĩĮ æĸ¯ "," 1 2 3 4 5 7 8 5 2 3 6 ", false )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadd ( Mine Shipping Address Data (" 1 "," æ¹ ĸ åĮĹ çľģ æŃ¦ æ±ī å¸Ĥ æŃ¦ æĺ Į åĮº æ¹ ĸ åĮĹ å¤§åŃ¦ "," å¼ł ä¸ī "," 1 2 3 4 5 7 8 5 2 3 6 ", false )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadd ( Mine Shipping Address Data (" 1 "," æ¹ ĸ åĮĹ çľģ æŃ¦ æ±ī å¸Ĥ æŃ¦ æĺ Į åĮº æ¹ ĸ åĮĹ å¤§åŃ¦ "," å¼ł ä¸ī "," 1 2 3 4 5 7 8 5 2 3 6 ", false )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġadd ( Mine Shipping Address Data (" 1 "," æ¹ ĸ åĮĹ çľģ æŃ¦ æ±ī å¸Ĥ æŃ¦ æĺ Į åĮº æ¹ ĸ åĮĹ å¤§åŃ¦ "," å¼ł ä¸ī "," 1 2 3 4 5 7 8 5 2 3 6 ", false )) ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠĠĠĠĠ Ġre cyclerView . adapter Ġ= Ġm Adapter ĊĠĠĠĠĠĠĠ Ġre cyclerView . layout Manager Ġ= ĠLinearLayoutManager ( this ) ĊĊĠĠĠĠĠĠĠ Ġm Adapter . setOn ItemClickListener Ġ{ Ġadapter , Ġview , Ġposition Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Result ( RESULT _ OK , ĠIntent (). putExtra ( App Constant . Constant . DATA , adapter . getItem ( position ) Ġas ĠM ine Shipping Address Data )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfinish () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }