android - Making FrameLayout transparent -


I want my activity should show a bigger dialogue, which is transparent, around a quarter and the Middle The part is solid where I can keep the idea. I would have put a frame layout inside the second using the frame layout, but I am unable to make a transparent first.

My XML file: -

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; FrameLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" android: background = "# 00000000" & gt; & Lt; Android: layout_marginLeft = "75dp" Android: layout_marginRight = "75dp" Android: layout_marginTop = "50dp" & gt; FrameLayout Android: layout_width = "wrap_content" android: layout_height = "wrap_content" & Lt; RelativeLayout Android: layout_width = "match_parent" Android: layout_height = "match_parent" & gt; & Lt; Button android: id = "@ + id / Button1" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: layout_centerHorizontal = "true" Android: layout_centerVertical = "true" android: text = "Search" / & gt ; & Lt; EditText android: id = "@ + id / editText1" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" Android: layout_above = "@ + id / Button1" Android: layout_alignParentLeft = "true" Android: layout_marginBottom = "30dp "Android: gravity =" center "Android: sign =" Enter the name of the movie! " / & Gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignBottom = "@ + id / editText1" Android: Layout_centerHoriginal = "Android: attr / progressBarStyleLarge" id = "@ + id / progressBar1" style = Android: layout_width = "wrap_content" "True" /> & lt; / RelativeLayout & gt; & Lt; / FrameLayout & gt; & Lt; / FrameLayout & gt;  

Any ideas that this is not working?

You need to set the subject of this kind of activity:

Manifest.xml

  & lt; Activity Android: ". Activity.ImagePreviewActivity" name = Android: theme = "@ style / theme.Transparent" />  res / values ​​/ styles.xml  

  in  

& lt; Style name = "Theme.Transparent" parent = "Theme .MCChilli.NoTitle" & gt; & Lt; Item name = "android: windowNoTitle" & gt; True & lt; / Item & gt; & Lt; Item name = "android: windowIsTranslucent" & gt; True & lt; / Item & gt; & Lt; Item Name = "Android: Window Background" & gt; @Android: Color / Transparent & lt; / Item & gt; & Lt; / Style & gt;

Also, I think it is from the north a few Google clicks, but whatever ...


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -