SetBackgroundResource

0

I need help on SetBackgroundResource, how do I apply this to a button that is in MainActivity (main_bt_padra) but I want the result in a TextView (ct_tv_gl_topo) that is in another Activity.

main_bt_padrao.setOnClickListener( new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            ct_tv_gl_topo.setBackgroundResource( R.drawable.cotacao_azul_ganho_liquido_topo );

You are in MainActivity

main_bt_padrao

You are on CotacaoActivty

ct_tv_gl_topo

    
asked by anonymous 29.10.2018 / 13:55

0 answers