![當前佈局] http://i50.tinypic.com/qqznzs.png如何使用位圖作爲Android中的背景從LinearLayout中刪除黑條?
我想從佈局的頂部和底部得到blakc酒吧,而不是黑色的白色。我已經嘗試改變背景顏色了。
抽拉CODE:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="clip_horizontal|clip_vertical|center"
android:src="@drawable/theblindgoat_logo"
android:tileMode="disabled" >
</bitmap>
主代碼:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/startup"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF"
android:orientation="vertical" >
順便說一句我需要的圖像不是垂直伸展,從而改變這不是一個需要解決辦法。
可以發佈整個xml佈局嗎? – ChristopheCVB
我現在做了。它並不是在最初的main中設置爲drawable,而是設置在activity中,所以它只會在動畫發生後才生效。 – jrquick