私には要件があります...透明なレイアウト(そのような80%透明)が必要なので、背景を表示する必要があります。同じことをする方法はありますか? 透明なレイアウト...?
は私が<?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:orientation="vertical"
android:background="#C0C0C0">
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="60dip"
android:background="@drawable/style">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
</LinearLayout>
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="YourTheme" parent="android:@Theme.Translucent">
<item name="android:windowBackground">@color/background</item>
</style>
</resources>
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<color name="background">#55000000</color>
</resources>
が、その動作していない(はずですが透明な第2のリニアレイアウトをworking..thatない)ことを試みました。 その2番目の線形レイアウトは透明でなければなりません。
おかげで.....
あなたは何を得ているのスナップを投稿できますか? transperentは何を意味するのですか?半透明の背景の下にあなたの壁紙を見たいですか? – Hiral
まあまあ...あなたは私の必要条件を持っています。半透明背景の下に見える壁紙。 – KKC
しかし、あなたはxmlの一部のためにそれをすることはできません。あなたは完全な活動をtransperent.pleaseにすることができますhttp://developer.android.com/resources/samples/ApiDemos/src/com/example/androidを参照してください/apis/app/TranslucentBlurActivity.htmlおよびhttp://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TranslucentActivity.html – Hiral