Android Question transparent activity brightness

Shivito1

Active Member
Licensed User
Within AVD Exoplayer dimmed almost appears grayed out. I found the cause is the fact that I have transparent activity. My question: can this be fixed without forgoing the transparent activity?

manifest:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
'<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="21"/>
AddManifestText(
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="21"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'Theme test
SetActivityAttribute(Main, android:theme, @style/CustomActTheme)
CreateResource(values, theme.xml,
<resources>
<style name="CustomActTheme" parent="@android:style/Theme.Material">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">false</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:colorPrimary">#000000</item> <!-- action bar -->
<item name="android:colorPrimaryDark">#bababa</item> <!-- status bar -->
<item name="android:colorAccent">#f44336</item> <!-- Seekbar,, checkboxes,, switches,, etc. -->
<item name="android:textColorPrimary">#4286f4</item> <!-- ? -->
<item name="android:textColorSecondary">#bababa</item> <!-- inactive editText line,, scrollbar -->
<item name="android:textColor">#FFFFFF</item> <!-- menu text,, msgbox title -->
<item name="android:textColorLink">#b71c1c</item>
<item name="android:textColorHighlight">#FF9F9F</item>
</style>
</resources>
)

Example submitted by user is attached.
 

Attachments

  • BrightnessExample.jpg
    BrightnessExample.jpg
    50.7 KB · Views: 296
Top