1
我已經搜遍了該網站和其他幾個人,我有一個問題找到一種方法來清晰度好圖標風格的圖像按鈕。我一直使用的圖像按鈕填充內容,看起來只是扭曲,我想要非常漂亮的圖標樣式的圖像按鈕,而不是它的污跡印記,幾乎沒有清晰度。我希望它們的間距足夠大,你可以看到它們背後的背景,我是否需要以某種方式使src的圖像和背景清晰?Android圖像按鈕
繼承人我的一些代碼:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/debface"
>
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="4"
android:gravity="bottom"
>
<!-- Images coming out Blurry, I need to compress like a hires icon file -->
<TableRow>
<ImageButton
android:id="@+id/button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/debraidcard"
android:layout_weight="1"
android:padding="25px"
android:paddingLeft="25px"
android:paddingRight="25px"
/>
<ImageButton
android:id="@+id/button02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/debraidcard"
android:padding="25px"
android:paddingLeft="25px"
android:paddingRight="25px"
/>
<ImageButton
android:id="@+id/button03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/debraidcard"
android:layout_weight="1"
android:padding="25px"
android:paddingLeft="25px"
android:paddingRight="25px"
/>
</TableRow>
我用我的圖片幾種不同的大小,我已經.JPG和.PNG之間切換。我看了幾篇教程,不喜歡結果。任何指着我的方向是正確的幫助感激
非常感謝你 –
現在即使它編譯並且看起來像我也想要它,它已經成爲不斷關閉的力量。這只是我爲數不多的一個變化,任何想法 –
不,沒有錯誤日誌。 – pumpkee