나는 요구 사항을 가지고있다 ... 투명 레이아웃 (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하지 않음) 것을 시도했다. 그 두 번째 선형 레이아웃은 투명해야합니다.
감사합니다 .....
받고있는 사진을 게시 할 수 있습니까? 그리고 transperent는 무엇을 의미합니까? 당신의 벽지가 반투명 한 배경 아래서 보이기를 원하십니까? – Hiral
정확히 ... 내 요구 사항이 있습니다. 반 transperent 배경 아래에서 볼 수있는 벽지 .. ????. – 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