package Ġcom . zhang t eng . base library . activity Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . zhang t eng . mvp . mvp . Base M vp Activity Ċ import Ġcom . zhang t eng . base library . R Ċ import Ġcom . zhang t eng . base library . mvp . model . im odel . I Base M vp Demo Model Ċ import Ġcom . zhang t eng . base library . mvp . presenter . Base M vp Demo Presenter Ċ import Ġcom . zhang t eng . base library . mvp . presenter . ip res enter . I Base M vp Demo Presenter Ċ import Ġcom . zhang t eng . base library . mvp . view . I Base M vp Demo View Ċ Ċ class ĠBase M vp Demo Activity Ġ: ĊĠĠĠ ĠBase M vp Activity < I Base M vp Demo View , ĠI Base M vp Demo Model , ĠI Base M vp Demo Presenter >(), ĊĠĠĠ ĠI Base M vp Demo View Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ base _ mvp _ demo ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcreate Presenter (): ĠI Base M vp Demo Presenter ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠBase M vp Demo Presenter () Ċ // ĠĠĠĠĠĠĠ Ġreturn ĠProxy . new Proxy Instance ( Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠBase M vp Demo Presenter :: class . java . class Loader , Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ( I Base M vp Demo Presenter :: class . java ), Ċ // ĠĠĠĠĠĠĠĠĠĠĠ ĠLoading Presenter Handler ( Base M vp Demo Presenter ()) Ċ // ĠĠĠĠĠĠĠ Ġ) Ġas ĠI Base M vp Demo Presenter ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit View () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . init View () ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġinit Data () Ġ{ ĊĊĠĠĠ Ġ} Ċ }