package Ġcom . example . markdown Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . LayoutInflater Ċ import Ġandroid . view . View Ċ import Ġandroid . view . ViewGroup Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġbr . ti ag oh m . markdown view . Markdown View Ċ import Ġbr . ti ag oh m . markdown view . css . styles . Github ĊĊ Ċ class ĠTi ag oh m : ĠFragment () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate View ( in flater : ĠLayoutInflater , Ġcontainer : ĠViewGroup ?, ĠsavedInstanceState : ĠBundle ?): ĠView ? Ġ{ ĊĊĠĠĠĠĠĠĠ Ġval Ġroot Ġ= Ġinflater . inflate ( R . layout . ti ag oh m _ fragment , Ġcontainer , Ġfalse ) ĊĊĠĠĠĠĠĠĠ Ġval Ġm Markdown View Ġ= Ġroot . findViewById < Markdown View >( R . id . markdown _ view ) ĊĠĠĠĠĠĠĠ Ġm Markdown View . add StyleSheet ( Github ()) Ċ Ċ // ĠĠĠĠĠĠĠ Ġm Markdown View . load Markdown From Asset (" an ith ink . md ") ĊĠĠĠĠĠĠĠ Ġm Markdown View . load Markdown From Url (" https :// raw . githubusercontent . com / Hon char uk O le ks and r / markdown / master / README . md ") ĊĊĠĠĠĠĠĠĠ Ġreturn Ġroot ĊĠĠĠ Ġ} Ċ }