package Ġcom . me . h arris . text view test . round _ img Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . text . Sp ann able Ċ import Ġandroid . text . Sp ann able String Ċ import Ġandroid . widget . TextView Ċ import Ġcom . me . h arris . text view test . R Ċ import Ġkotlinx . android . synt hetic . main . activity _ rounded _ bg .* Ċ Ċ class ĠRound Bg Activity : AppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ rounded _ bg ) ĊĠĠĠĠĠĠĠ Ġval Ġsp Ġ= ĠSp ann able String (" 9 9 + "). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġset Span ( Round BackgroundColor Span ( this @ Round Bg Activity ), 0 , this . length , Sp ann able . SPAN _ EXCL USIVE _ EXCL USIVE ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġtv _ 1 . setText ( sp , TextView . Buffer Type . SPAN N ABLE ) ĊĠĠĠ Ġ} Ċ }