Hi dears!
Today I have a question to you regarding the possibilty to draw an image/picture on each activity at a specific position (x,y,w,h) within the manifest file:
Currently I created my own resource as a color gradient (mygradient.xml) for each activity:
This works perfectly on each device.
________________________________________________________________________
But now, I need an image at the left upper corner on each activity - but I dont want to draw it every time in the designer (and in the CREATE method).
Therefore my question:
Is there any way to draw a specific bitmap (as a resource) to an activity via MANIFEST file?
I am thankful for any help.
Best regards
ARTsoft
Today I have a question to you regarding the possibilty to draw an image/picture on each activity at a specific position (x,y,w,h) within the manifest file:
Currently I created my own resource as a color gradient (mygradient.xml) for each activity:
Manifest file:
'
CreateResource (drawable, mygradient.xml,
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:angle="90" android:startColor="#FF003264" android:endColor="#FF0064FF" android:type="linear"/>
</shape>
)
'
SetApplicationAttribute(android:theme, "@style/LightThemeArtsoft")
CreateResource(values, theme.xml,
<resources>
<style name="LightThemeArtsoft" parent="@style/Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/mygradient</item>
</style>
</resources>
)
'
...
This works perfectly on each device.
________________________________________________________________________
But now, I need an image at the left upper corner on each activity - but I dont want to draw it every time in the designer (and in the CREATE method).
Therefore my question:
Is there any way to draw a specific bitmap (as a resource) to an activity via MANIFEST file?
I am thankful for any help.
Best regards
ARTsoft