Transparent Android activity trouble -
I have an application where the theme can be changed between three different parts. I have two activities Those who have a transparent background and look like a dialogue above the previous activity.
I have searched a lot for transparent activities on the stack and most of them are the same moon. A custom theme with some properties to enable a transparent background for the activity in question.
The issue for me is that I need to set up this custom transparent theme on parental activity, as well as all to get any transparency. If I set only a transparent subject on activity then I want to be transparent, it will be a solid background. Everything I thought I have tried, but it boils down to it all and I am not sure what I am doing wrong.
This is my two separate thematic topics (slowing down in the lower parts):
& lt; Style name = "style actionbars" original = "theme. Sharlock. Light. Force overflow" & gt; & Lt; Item name = "android: textViewStyle" & gt; @ Style / Iksu.TextView & lt; / Item & gt; & Lt; Item name = "WindOntent Overlay" & gt; @ null & lt; / Item & gt; & Lt; Item name = "android: windowContentOverlay" & gt; @ null & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "transparent" original = "theme. Sharlock. Lightweight. Force over flow" & gt; & Lt; Item name = "android: textViewStyle" & gt; @ Style / text view & lt; / Item & gt; & Lt; Item name = "WindOntent Overlay" & gt; @ null & lt; / Item & gt; & Lt; Item name = "android: windowContentOverlay" & gt; @ null & lt; / Item & gt; & Lt; Item name = "android: windowIsTranslucent" & gt; True & lt; / Item & gt; & Lt; / Style & gt; Style actionbars are the parents for my three main topics, which are used for all activities, which is not a transparent background (which is just two ). > Transparent is the parent for three subjects, which can be used on any activity where the background should be transparent.
So there is a theme based on style action theme in parent activity
In this situation I am based on a transparent subject.
If I walk:
& lt; Item name = "android: windowIsTranslucent" & gt; True & lt; / Item & gt; For the style actionbars, almost all things work in Android 4.4.2 as an attraction, except for a dirty bug, to see the main activity "back behind" in the OS scene. NavUtils for Up Navigation
Your menigast file In
& lt; Activity Android: Theme = "@Android: Style / Theme Transcellant No. Titlebar" & gt; & Lt; / Activity & gt; and also in your xml set
android: background = "@ android / transperent" Can use
Android: alpha = "0.50"
Comments
Post a Comment