package Ġcom . yu hang . no vel . p ir ate . view holder Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . view . ViewGroup Ċ import Ġcom . gy f . imm ersion bar . Imm ersion Bar Ċ import Ġcom . yu hang . no vel . p ir ate . app . P ir ate App Ċ import Ġcom . yu hang . no vel . p ir ate . app . P ir ate App . Companion . getInstance Ċ import Ġcom . yu hang . no vel . p ir ate . base . Base ViewHolder Ċ import Ġcom . yu hang . no vel . p ir ate . constant . Book Constant Ċ import Ġcom . yu hang . no vel . p ir ate . constant . Config Constant Ċ import Ġcom . yu hang . no vel . p ir ate . databinding . Item Read Book Binding Ċ import Ġcom . yu hang . no vel . p ir ate . extension . nice Dp 2 px Ċ import Ġcom . yu hang . no vel . p ir ate . extension . nice Sp 2 px Ċ import Ġcom . yu hang . no vel . p ir ate . listener . On Page Index Listener Ċ import Ġcom . yu hang . no vel . p ir ate . repository . database . entity . Book Content K SE ntity Ċ import Ġcom . yu hang . no vel . p ir ate . repository . preferences . Preference Util Ċ import Ġcom . yu hang . no vel . p ir ate . ui . book . adapter . Read Book Adapter Ċ import Ġcom . yu hang . no vel . p ir ate . utils . StatusBar Util ĊĊ Ċ class ĠItem Read Book VH ( parent : ĠViewGroup ) Ġ: ĊĠĠĠĠĠĠĠ ĠBase ViewHolder < Book Content K SE ntity , ĠItem Read Book Binding >( parent , Ġcom . yu hang . no vel . p ir ate . R . layout . item _ read _ book ) Ġ{ ĊĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ViewHolder ( obj : ĠBook Content K SE ntity , Ġposition : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Bind ViewHolder ( obj , Ġposition ) ĊĠĠĠĠĠĠĠ Ġm Binding . content Tv . position Ġ= Ġposition ĊĠĠĠĠĠĠĠ Ġm Binding . content Tv . onClick Next Listener Ġ= Ġget Listener () ĊĠĠĠĠĠĠĠ Ġm Binding . content Tv . onClick Previous Listener Ġ= Ġget Listener () ĊĠĠĠĠĠĠĠ Ġm Binding . content Tv . onClick Center Listener Ġ= Ġget Listener () ĊĊĊĠĠĠĠĠĠĠ Ġval Ġmargin Ġ= ĠmContext . nice Dp 2 px ( 2 0 f ) ĊĠĠĠĠĠĠĠ Ġm Binding . content Tv . text Size Ġ= ĠBook Constant . getPage Text Size () ĊĠĠĠĠĠĠĠ Ġm Binding . content Tv . setTitle ( obj . text Page Bean ?. chapter Name ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Page TextColor ( Book Constant . getPage TextColor ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Battery ( Read Book Adapter . m Battery Level ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Page Type ( getInstance (). getPage Type ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Margin ( margin , Ġmargin , ĠImm ersion Bar . getStatus Bar Height ( mContext Ġas ĠActivity ), Ġ 0 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setText Page Bean ( obj . text Page Bean ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. init () ĊĊĠĠĠ Ġ} Ċ }