[PAID] Recycler Native Ad View Extension : Monetize & boost your earning with native ads into recycler view
The Recycler Native Ad View Extension for MIT App Inventor 2 is a powerful tool that enhances the app-building experience by seamlessly integrating native ads into your application. This extension allows you to display native ads within a recycler view, providing a user-friendly and unobtrusive way to monetize your app. With its easy-to-use interface and extensive customization options, this extension is perfect for developers looking to generate revenue through native advertising.
You need to initialize the recycler view first.
layout
- Set any view layout here.layoutManager
- Set layout manager using extension properties.snapHelper
- Set snap helper from extension properties.data
- Set item list.adAfterItem
- Set number to show ad after items.adSize
- Set ad size using extension properties or functions.adUnitId
- Set ad unit id for banner ad.testMode
- Set true for enable test ads.
Here you need to create your item view for binding it’s data on bind view event.
rootView
- It’s return the root view.
Here you need to bind data to created view.
rootView
- It’s return the root view.itemPosition
- It’s return the position for item view.dataItem
- It’s return the item from given data list.adapterPosition
- It’s return the position of adapter.
Here you need to bind native ad to created view.
nativeAdView
- It’s return the native ad view.nativeAd
- It’s return the loaded native ad for this position.adapterPosition
- It’s return the position of adapter.
It’s triggered when view attached to window.
rootView
- It’s return the root view.itemPosition
- It’s return the position for item view.adapterPosition
- It’s return the position of adapter.
It’s triggered when view detached from window.
rootView
- It’s return the root view.adapterPosition
- It’s return the position of adapter.
Event for scroll state change.
scrollState
- It’s return the scrolling state.
Event for scrolled listener.
dx
- It’s return the dx position.dy
- It’s return the dy position of screen.
It’s triggered when item swiped right to left.
itemPosition
- It’s return the position for item view.adapterPosition
- It’s return the position of adapter.
It’s triggered when item swiped left to right.
itemPosition
- It’s return the position for item view.adapterPosition
- It’s return the position of adapter.
It’s triggered when item moved between them.
fromAdapterPosition
- It’s return the from adapter position for item view.toAdapterPosition
- It’s return the to adapter position for item view.
It’s triggered when user over scrolling the list view.
state
- It’s returning the state of over scrolled.offset
- It’s returning the over scrolled offset.
It's triggered when extension failed to inflate xml layout for native ad view. Read the message to understand the error reason.
message
- It's return the error message.
It’s triggered when ad loaded.
hasVideo
- It's return true if the ad has video content.
It’s triggered when ad failed to load.
error Code
- It's return the error code.error Message
- It's return error message as string.response
- It's return the error code & message as json.
It’s triggered when user click on any banner ad.
It’s triggered when the ad count impression.
It’s triggered for ad swipe gesture clicked.
It’s triggered when ad is opened.
It's triggered when ad is closed.
It's triggered when video is started.
duration
- It’s return the duration of video in second.
It's triggered when video played.
It's triggered when video is paused.
It's triggered when video is ended.
duration
- It’s return the duration of video in second.
It's triggered when video muted or unmuted.
isMuted
- It’s return true is video is muted.
Use this method to scroll adapter to the item position.
itemPosition
- Set item position.
Use this method to smoothly scroll to item position.
itemPosition
- Set item position.
Use this method to manually stop scrolling.
Use this method to add gap between items.
gap
- Set gap as integer number.
Use this method to get given data list.
Use this method to update data with new or modified list.
data
- Set data as list.
Use this method to update data smoothly.
data
- Set data as list.
You can use this function to manually notify the adapter to re-create all views after any changes to views.
Use this function to notify the adapter for re-create view for given position.
adapterPosition
- Set adapter position.
Use this function to notify adapter to add item to given position.
adapterPosition
- Set adapter position.
Use this function to notify adapter for remove item from given position.
adapterPosition
- Set adapter position.
Use this function to notify adapter for item moving by given positions.
fromAdapterPosition
- Set item position from where to move item.toAdapterPosition
- Set item position to where to move item.
Use this function to notify adapter for multiple items changed.
adapterPositionStart
- Set start position.itemCount
- Set item count.
Use this function to notify adapter for multiple items insertion.
adapterPositionStart
- Set start position.itemCount
- Set item count.
Use this function to notify adapter for multiple items removed.
adapterPositionStart
- Set start position.itemCount
- Set item count.
Get item position by adapter position.
adapterPosition
- Set adapter position.
Get adapter position by item position.
itemPosition
- Set item position.
Use this function to get root view by child view.
component
- Set view component to get root view.
Use this function to get adapter position by root view.
rootView
- Set root view.
Use this function to create dynamic views.
parent
- Set parent view where to create new view.name
- Set the name of component to create view.tag
- Set tag for view.properties
- Set properties for view.
Use this function to create dynamic views using JSON template.
in
- Set view component where to create new views.template
- Set template to create views.parameters
- Set parameters for dynamic views.
Use this function to set properties for any dynamic view.
component
- Set view to apply properties.properties
- Set properties.
Set single property for a component.
component
- Set view to apply properties.name
- Set property name.value
- Set property value.
Use this function to set unique id to view. It’s required to use click listener.
component
- Set view component to apply unique id.id
- Set id for view component.
Use this function to get unique id for any view.
component
- Set view component to get unique id.
It's return all used unique ids as list.
Use this function to get child view from parent view by it’s tag.
parent
- Set the child view component.tag
- Set tag to find parent view.
Use this function to get view component by it’s unique id. For using this method you should set unique id to this view.
uniqueId
- Set unique id to find the view component.
It’s returning true if the view is created dynamically.
component
- Set view component.
It’s returning the name of component. You can use this function to get the actual name of in-built components.
component
- Set any in-build component to get it’s name.
Use this function to animate root view when clicked.
rootView
- Set view to animate.duration
- Set duration in milliseconds.
Use this function to create linear layout manager for initialize recycler view.
orientation
- Set orientation for recycler view from extension properties.reverseLayout
- Set boolean value here. Set true to show list in reverse order.
Use this function to create grid layout manager for initialize recycler view.
spanCount
- Set span count as integer number. Span count is for create items per row.orientation
- Set orientation for recycler view from extension properties.reverseLayout
- Set boolean value here. Set true to show list in reverse order.
Use this function to create staggered grid layout manager for initialize recycler view.
spanCount
- Set span count as integer number. Span count is for create items per row.orientation
- Set orientation for recycler view from extension properties.
You've to populate add created ad views for bind native ad to the native ad view. Use this functions to populate views and watch tutorial video for better understanding.
nativeAdView
- Set native ad view object from BindAdView event.nativeAd
- Set native ad object from the BindAdView event.tag
- Set view tag which one you've used for this view into xml code.backgroundColor
- Set background color for the CallToActionView (Button).
You've to call this at the end of populating views to notify that populating views is finished and native ad view is read to display ad.
nativeAdView
- Set native ad view object from BindAdView event.nativeAd
- Set native ad object from the BindAdView event.
It's return total loaded ads count.
Using this properties you can get adapter position.
Set recycler view orientation using this properties.
To create snap helper use this properties.
To handle scroll state use this properties.
Set xml file from asset to inflate native ad view or set xml code as string using block section.
Set true to animate the native ad view on scrolling.
Set true
to enable left swipe on items.
Change background color of left swiped view.
Change the label color of swiped left label text.
Change swipe left label text. Make it empty to disable swipe left label text.
Change swipe left label text size.
Set image on swipe left view. Make it empty to disable swipe left icon.
Set true
to enable right swipe.
Change background color of right swiped view.
Change the label color of swiped view.
Change the text for swipe right text. Make it empty to disable swipe right label.
Change the text size of swipe right label.
Set the swipe right icon, set None or make it empty to disable swipe right icon.
Set true
to enable dragging items between them.
Set true
to improve performance.
Set false
to improve scrolling.
Set true
to enable over scroll effect.
Set item animation duration in milliseconds.
Set false
to animate only on first scroll.
Chage item animation from available animations.
Total 51+ animations are available. More animations will be added soon.
Demo blocks
📝 item.json - Download demo template json.
📝 small_template.xml - Download demo xml layout.
com.jewel.admob.recyclernativeadview.aix (126 KB)
⚙️ SDK: 22.1.0
🏋️♂️ Size: 126 KB
🪙 Price: $25 (One time purchase only)
🪙 Price: $30 (Lifetime support + minor updates)
🪙 Price: $35 (Lifetime support + major + minor updates)
🌏 Released On: 28 June 2023 (GMT+06:00)
🌏 Updated On: 28 June 2023 (GMT+06:00)\