package Ġcom . and roi dex ample s . app . flows . gest ures Ċ Ċ import Ġandroid . graphics . Bitmap Factory Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . widget . Toolbar Ċ import Ġandroid . view . View Ċ Ċ import Ġcom . and roi dex ample s . app . R Ċ import Ġcom . and roi dex ample s . app . view . Zoom able ImageView Ċ Ċ class ĠZoom able Image Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ zoom able _ image view ) ĊĠĠĠĠĠĠĠ Ġload Components () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġload Components () Ġ{ ĊĠĠĠĠĠĠĠ Ġset Support ActionBar ( findViewById < View >( R . id . top _ toolbar ) Ġas ĠToolbar ) ĊĠĠĠĠĠĠĠ Ġsupport ActionBar !!. set Display Home As Up Enabled ( true ) ĊĠĠĠĠĠĠĠ Ġval Ġzoom able ImageView Ġ= ĠfindViewById < View >( R . id . zoom able ImageView ) Ġas ĠZoom able ImageView ĊĠĠĠĠĠĠĠ Ġzoom able ImageView . setImage Bitmap ( Bitmap Factory . decode Resource ( resources , ĠR . drawable . t gh oul )) ĊĠĠĠ Ġ} Ċ } Ċ