Friday, 13 September 2013

how to set background xml file in drawable for a view?

how to set background xml file in drawable for a view?

how can I set an xml background file that placed in drawable for a view
without using @SuppressLint("NewApi") ?
for example I created a drawable xml file for my textview
when I call
TV.setBackground(getResources().getDrawable(R.drawable.tv_pic_back));
eclipse automatically add @SuppressLint("NewApi") at the first of my
function.
how can I use that without @SuppressLint("NewApi") ?

No comments:

Post a Comment