Open efratos1 opened 5 years ago
You can check the code
Regards, Hazem Dahab
On Mon, Sep 16, 2019, 19:37 efratos1 notifications@github.com wrote:
Hello sir, I injoy your code but I have some issues how can I add ads to the pagedlist adapter. Like after 7 news I want to insert ad then after 7 news and add another ad........ Continue like that. Thank you
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zo0oka/EgyptLatestNews/issues/1?email_source=notifications&email_token=AEZ4LEOZ4JEWHEVLVN56WYLQJ675FA5CNFSM4IXFIHVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLUU7IQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ4LELWY5FRUWVSIBJ73HTQJ675FANCNFSM4IXFIHVA .
Which code
The ArticleAdapter code
Regards, Hazem Dahab
On Mon, Sep 16, 2019, 20:14 efratos1 notifications@github.com wrote:
Which code
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zo0oka/EgyptLatestNews/issues/1?email_source=notifications&email_token=AEZ4LEJDIVVCKT5RUN24L4LQJ7EJ5A5CNFSM4IXFIHVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62BAYY#issuecomment-531894371, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ4LEINQBFAHIR4JFKWMJDQJ7EJ5ANCNFSM4IXFIHVA .
Thank you for the quick answer but when I use
Override public int getItemViewType(int position) { return (position % 5 == 0) ? BANNER : ARTICLE; } It replace the current item by the ads. When we use this code it doesn't add to the list it replace the position item.
I know.. but actually I'm still looking for a solution
Regards, Hazem Dahab
On Mon, Sep 16, 2019, 20:36 efratos1 notifications@github.com wrote:
Thank you for the quick answer but when I use
Override public int getItemViewType(int position) { return (position % 5 == 0) ? BANNER : ARTICLE; } It replace the current item by the ads. When we use this code it doesn't add to the list it replace the position item.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zo0oka/EgyptLatestNews/issues/1?email_source=notifications&email_token=AEZ4LEM5L2LJJAIYLPIAXDLQJ7G3LA5CNFSM4IXFIHVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62DELI#issuecomment-531903021, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ4LEP4ZEPG4UT2XWJMV53QJ7G3LANCNFSM4IXFIHVA .
Okay I hop you will find the solution and share with us
Soon bro.
Regards, Hazem Dahab
On Mon, Sep 16, 2019, 22:34 efratos1 notifications@github.com wrote:
Okay I hop you will find the solution and share with us
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zo0oka/EgyptLatestNews/issues/1?email_source=notifications&email_token=AEZ4LEKZZW4X3ZWSQNDELTTQJ7UWZA5CNFSM4IXFIHVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62N5GY#issuecomment-531947163, or mute the thread https://github.com/notifications/unsubscribe-auth/AEZ4LEJE575D27VDGKPDMNTQJ7UWZANCNFSM4IXFIHVA .
Okay bro
Hello sir, I injoy your code but I have some issues how can I add ads to the pagedlist adapter. Like after 7 news I want to insert ad then after 7 news and add another ad........ Continue like that. Thank you