0
好吧,我正在尋找一種方法能夠改變,當你點擊的Android TabView的 選項卡上,改變橙色邊框顏色圍繞一個搜索欄顯示的橙色... anyideas如何做這樣的事情?更改TabView的默認顏色和搜索欄默認顏色
這就是我的主標籤查看
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent"
android:background="@drawable/gradient_bg"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</LinearLayout>
和我有這對我的搜索欄
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/searchText"
android:hint="@string/Search"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<ImageButton
android:id="@+id/searchButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/Search"
android:src="@drawable/search"
android:onClick="search"/>
</LinearLayout>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#b5b5b5"
android:dividerHeight="1dp"
android:listSelector="@drawable/list_selector" />
任何想法? 非常感謝您的幫助!
好吧,我明白你要去那裏,但即時通訊使用android 2.1你有一個Tab主題,我可以使用? HOLO不存在爲Android 2.1 – FirstLaw 2012-03-01 17:40:43
另外我只想改變背景和惱人的橙色當你選擇的東西的顏色... – FirstLaw 2012-03-01 17:49:32
我會把這個權利,因爲它適用於更高版本的機器人,感謝您的全力幫助,我終於徹底解決了這個問題。以不同的方式 – FirstLaw 2012-03-15 18:50:33