The question is published on by Tutorial Guruji team.
if there is for example an
in my layout do i then also have to reference it in the code of that type, or can i also just catch it as
Button btn = findViewById(R.id.idOfAboveCompatLayout)
AppCompatButton extends from
Button, so your
findViewById() is fine. In general,
AppCompatSnicklefritz extends from
Snicklefritz (for varying values of
Snicklefritz), so you can cast to
Snicklefritz without problems.