package Ġcom . example . custom components Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . widget . Button Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . example . custom components . component . Unix Epoch TextView Ċ Ċ class ĠSample Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ sample ) ĊĊĠĠĠĠĠĠĠ Ġval Ġunix Epoch TextView Ġ= ĠfindViewById < Unix Epoch TextView >( R . id . unix _ epoch _ text _ view ) ĊĠĠĠĠĠĠĠ Ġval Ġshow Current Time Button Ġ= ĠfindViewById < Button >( R . id . show _ current _ time _ button ) ĊĠĠĠĠĠĠĠ Ġshow Current Time Button . setOnClickListener Ġ{ Ġunix Epoch TextView . set Unix Epoch ( System . currentTimeMillis ()) Ġ} ĊĠĠĠ Ġ} Ċ }