Comments (8)
can you please help me regarding this
from admobadapter.
I am also having this issue .Any update on this . ?
from admobadapter.
For me the issue was inside AdmobFetcherExpress if the add is failed to load then the parent view visibilty was set as gone. like this
if(adViewEx.getAdView().getParent()!=null)
((View) adViewEx.getAdView().getParent()).setVisibility(View.GONE);
I have changed this to this
if(adViewEx.getAdView() !=null)
adViewEx.getAdView().setVisibility(View.GONE);
So that only the adview visibily is gone.
from admobadapter.
same issue , any solution for this ?
from admobadapter.
@diabloo Did you tried my workaround ?. Or you can add the adView to a Realative or Linear Layout so that only it's parent's visibility will be gone.
from admobadapter.
Guys, I'll check it today.
from admobadapter.
@sunilsunny565 i tried it but the application crash
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes.
edit
this line in AdmobFetcherExpress#onFailedToLoad causes the crash :
mPrefetchedAds.remove(adViewEx);
from admobadapter.
@kot331107 Thanks it's working in the latest build.Only one issue an empty view will be there as long as the ad fails. I tried something like this in AdmobExpressAdapterWrapper to get rid of the problem .
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if(getItemViewType(position) == getViewTypeAdExpress() && isNetworkAvailable)
{
// rest of code
return wrapper;
}else{
//rest of code
return mAdapter.getView(origPos, convertView, parent);
}
}
That is make a network check on getView ,but in this case I am getting duplicate view of listItem on ad position for sometime and then it disappears.Is there a way to get rid off that empty cell ?. Is there a way to add the view only if the ad is loaded.?
from admobadapter.
Related Issues (20)
- Can Banner Ads FIT the wrapper SIZE?
- Fatal Exception: java.lang.IllegalStateException HOT 4
- FireBaseRecyclerAdapter with AdmobBannerRecyclerAdapterWrapper causes error when setting adapter HOT 1
- AdmobExpressRecyclerAdapterWrapper crashes application on fast scroll
- Can't use admobadapter with FirebaseRecyclerAdapter HOT 2
- Any way to add AdListener? HOT 2
- Banner ad are not loaded HOT 8
- Audience Network Facebook HOT 1
- Adapter replaces the item - it should insert an ad not replace.
- How to used this library?
- Admob blocked my account but the ad is still displayed. HOT 5
- How to set size for native ads?
- what to put in the release instead of test device id? HOT 2
- ads get focused by sliding the list items inserted before them HOT 1
- error: setupAd(AdView) has protected access in AdmobFetcherBanner
- Limited to RecyclerView.ViewHolder HOT 2
- What does the statement below mean HOT 1
- Ad failed to load : 0
- Set AdChoices position? HOT 1
- ailed resolution of: Lcom/clockbyte/admobadapter/AdmobFetcher$2; version 1.4.6 previously same code worked fine HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admobadapter.