In Activity, created a variable
private TextView txtTitle; and in the onCreate() method I refer to it like this
txtTitle = (TextView) findViewById(R.id.txtTitle); Studio gray displays the type to which I cast the variable. Those. now it is not necessary to write (TextView) ?