중복질문이지만...아무리 봐도 모르겠어서 다시 질문합니다.ㅠㅠ

 

도와주세요~~~

btn.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true"
             android:drawable="@drawable/home_sub_click" />
    <item
             android:drawable="@drawable/home_sub" />                
</selector>

 

우선 이런 식으로 xml파일을 drawable에 넣어놨습니다.

 

 

intent = new Intent().setClass(this, SearchList.class);
  spec = tabHost.newTabSpec("Home").setIndicator(new MyView(this, R.drawable.btn, "home")).setContent(intent);
  tabHost.addTab(spec);

 

 

그리고 이렇게 호출을 했습니다.. 왜 안되는것일까요.ㅠㅠ