was ich erreichen möchte ist Aktivität mit dialogähnlicher Transparenz mit 100% Sichtbarkeit von RelativeLayout Inhalt. Dies ist xml Aktivität:Aktivität mit transparentem Hintergrund
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="50dip"
android:layout_marginLeft="8dip"
android:layout_marginRight="8dip"
android:layout_marginTop="50dip">
(...)
</RelativeLayout>
</LinearLayout>
und das ist manifest:
<activity
android:name="com.acentic.rcontrol.activities.MyActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
</activity>
Momentan Hintergrund noch sichtbar ist, was mache ich falsch?
--- EDIT: Ich habe
android:background="#c0000000"
zu Linearlayout. Jetzt ist der Hintergrund transparent, wie ich es wollte, aber auch TextViews in RelativeLayout sind auch transparent .. wie man es ändert?
mögliche Duplikate von [Wie transparente Aktivität in Android erstellen?] (Http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android) – g00dy
set android: background = " # 000000 "zum RelativeLayout – sweggersen
Code in Link überprüfen, der für mich funktioniert. http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android/38589105#38589105 –