XML Native Views Support
3 min
if your app uses xml based layouts instead of jetpack compose for certain screens, follow the integration steps outlined in the documentation below these steps ensure that appstorys can correctly render and position campaigns on xml screens in android native based projects capture screen capture screen button is a part of the overlayelement, once you call that and if the test user is active and the conditions match, the capture screen button will automatically appear a widgets \<com appversal appstorys ui xml widgetview android\ layout width="match parent" android\ layout height="wrap content" app\ placeholder="@drawable/ic launcher foreground" app\ position="widget position" /> explanation for position if you want to create multiple widgets in a single screen, you can use the position attribute (as defined in track screens) to define the multiple positions which you can then select as a dropdown from the dashboard while creating new widget campaigns b to call banner floater csat pip videos modals bottom sheets tooltips, spotlight, coachmarks you only need to call this single line of code on every screen you need to wrap your each individual screen in between the code as given in the example below \<com appversal appstorys ui xml overlaylayoutview xmlns\ android="http //schemas android com/apk/res/android" xmlns\ app="http //schemas android com/apk/res auto" android\ layout width="match parent" android\ layout height="match parent"> < your app code > // you need to wrap your // entire app in between this code wrapper \</com appversal appstorys ui xml overlaylayoutview> c reels \<com appversal appstorys ui xml reelsview android\ layout width="wrap content" android\ layout height="wrap content" /> d stories \<com appversal appstorys ui xml storiesview android\ layout width="wrap content" android\ layout height="wrap content" /> you can create a tootltip, spotlight or coachmark campaign by selecting the "tooltip" option from the dashboard you need to make multiple steps for a tootlip campaign and only one step for a spotlight campaign this concludes the appstorys android native sdk integration guide if you need further assistance, contact the appstorys support team contact email support\@appstorys com