Android Question Scrolling Label on Translucent

AHilberink

Active Member
Licensed User
Longtime User

Attachments

  • BlackStripe.zip
    3.4 KB · Views: 154

AHilberink

Active Member
Licensed User
Longtime User
You are using an Android 2 theme. This is a mistake.

What are you trying to do?

Hi Erel,

I need the activity to be transparant. The use of this theme is an reply to a previous thread of me in 2014. I found a new way in:
https://www.b4x.com/android/forum/threads/background-activity-transparent.97900/

B4X:
SetActivityAttribute (main, android:theme, "@style/Theme_Main")
CreateResource (values, theme_main.xml,
<resources>
  <style name="Theme_Main" parent="android:Theme">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:backgroundDimEnabled">false</item>
  </style>
</resources>
)

Thanks for pointing me in that direction.

Best regards,
André
 
Upvote 0
Top