首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

tabhost 按住的成效

2012-06-26 
tabhost 按住的效果m_tabHost.getTabWidget().getChildAt(i).setBackgroundResource(R.drawable.selector_

tabhost 按住的效果
m_tabHost.getTabWidget().getChildAt(i)
.setBackgroundResource(R.drawable.selector_tab_background);

<?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/tab_item_p"/>
       
    <item
        android:state_selected="true"
        android:drawable="@drawable/tab_item_d"/>
   
</selector>

热点排行