Android Example Widget Layout Background

I'm just trying to add a background image to the 4x1 widget from the following excellent thread:

https://www.b4x.com/android/forum/threads/widget-layout-resizable-adaptive.115638/#post-989760

But the Labels does not shown, can somebody illustrate the issue 👍

I just made the following:
1. Add Imageview to the panel on 4x1.bal file.
2. Add ImageView to the manifest: CreateResource(layout, widget_4x1_layout.xml, ...
3. Add style to set alpha and scaleType, saved to res/values/style.xml (read-only)

See the attached example.

Thanks in advance 🙏
 

Attachments

  • Widget Test.zip
    193.5 KB · Views: 86

Sagenut

Expert
Licensed User
Longtime User
I updated the example in that thread with a probably partial solution.
You can check if it help.
 
Top