@ file : Suppress (" unused ") Ċ Ċ package Ġcom . she v art . android transitions . advanced . clean . code . deleg ates Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . support . v 4 . app . Fragment Ċ import Ġandroid . view . Window Ċ Ċ fun ĠActivity . init Content Transition By Delegate ( tp : ĠContent Transition Provider ) Ġ{ ĊĠĠĠ Ġwindow . apply Ġ{ ĊĠĠĠĠĠĠĠ Ġrequest Feature ( Window . FEATURE _ CONTENT _ TRANS ITION S ) ĊĠĠĠĠĠĠĠ Ġenter Transition Ġ= Ġtp . provide Enter Transition () ĊĠĠĠĠĠĠĠ Ġexit Transition Ġ= Ġtp . provide Exit Transition () ĊĠĠĠĠĠĠĠ Ġre enter Transition Ġ= Ġtp . provide Re enter Transition () ĊĠĠĠĠĠĠĠ Ġreturn Transition Ġ= Ġtp . provide Return Transition () ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠFragment . init Content Transition By Delegate ( tp : ĠContent Transition Provider ) Ġ{ ĊĠĠĠ Ġenter Transition Ġ= Ġtp . provide Enter Transition () ĊĠĠĠ Ġexit Transition Ġ= Ġtp . provide Exit Transition () ĊĠĠĠ Ġre enter Transition Ġ= Ġtp . provide Re enter Transition () ĊĠĠĠ Ġreturn Transition Ġ= Ġtp . provide Return Transition () Ċ }