Set a drawable as background programmatically

前端 未结 3 693
一整个雨季
一整个雨季 2021-02-07 09:32

EDIT: Sorry I realise from your comment my question was not clear enough. I will post a new one. Sorry for this and thanks for your answers

I am populat

3条回答
  •  礼貌的吻别
    2021-02-07 09:44

    Here the new Method

    recyclerView.setBackgroundResource(R.drawable.edit_text_button_shape);

    don't use this it's an old method recyclerView.setBackgroundDrawable(this.getResources().getDrawable(edit_text_button_shape));

提交回复
热议问题