0
我做了自定義尋找微調項目。但之後,我意識到還有白框(周圍的按鈕)。在圖片#2中更加明顯,其中按鈕圖像「更短」。你們知道如何排除白色框架(不顯示它們)嗎?如何刪除/排除微調項目框架?
主題使用:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/FrameLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:background="@drawable/spinner_select" >
<TextView
android:id="@+id/spinnertext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
</FrameLayout>
http://imageshack.us/photo/my-images/402/72449930.png/
好吧,我已經改變了我的帖子above.Width不依賴於textview的寬度。 – Radiak
你做了主題/按鈕設計?如果是這樣,請儘量讓它們填滿所有提供的空間。 –
via getDropDownView如上所示,我爲微調器創建了自定義視圖:(FrameLayout w/textview)。綠色按鈕是frameLayout背景。 – Radiak