package Ġcom . ar im dor . shared notes . ui . photo Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 4 . app . Fragment Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroid . view . WindowManager Ċ import Ġcom . ar im dor . shared notes . R Ċ import Ġcom . bump tech . glide . G lide Ċ import Ġcom . github . chr is ban es . photo view . Photo View Ċ Ċ class ĠPhoto Fragment Ġ: ĠFragment () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġphoto View : ĠPhoto View ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġview Ġ= Ġinflater . inflate ( R . layout . fragment _ photo , Ġcontainer , Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġval Ġphoto Uri Ġ= Ġactivity ?. intent !!. getString Extra (" photo Uri ") ĊĠĠĠĠĠĠĠ Ġphoto View Ġ= Ġview . findViewById ( R . id . photo _ view ) ĊĠĠĠĠĠĠĠ Ġphoto View . maximum Scale Ġ= Ġ 5 0 f ĊĠĠĠĠĠĠĠ Ġphoto View . adjust View Bounds Ġ= Ġtrue ĊĊĠĠĠĠĠĠĠ ĠG lide . with ( context !! ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. load ( photo Uri ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. into ( photo View ) ĊĊĠĠĠĠĠĠĠ Ġactivity !!. window . set Flags ( WindowManager . LayoutParams . FLAG _ FULL SCREEN , ĠWindow Manager . LayoutParams . FLAG _ FULL SCREEN ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġview ĊĠĠĠ Ġ} ĊĊ Ċ } Ċ