我有以下主佈局代碼:如何製作透明佈局?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/layout"
android:gravity="center"
android:background="#00000000"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="#FFFFFF" />
</LinearLayout>
我需要的是的LinearLayout將是透明的。我認爲我可以在背景屬性中使用alpha設置,但它不起作用。請告訴我 - 我需要我的應用程序將是空的,並在屏幕中心有一個白色矩形。
謝謝。你已經度過了我的一天。 – user1166635 2012-03-12 09:12:18
沒問題,很樂意幫忙。 – 2012-03-12 09:13:36