Skip to content
Advertisement

Tag: android-layout

How do I hide a NativeAdView ad template?

How can I hide where the ad appears if there is no ad? This is the advertisement that I have. It works and there is no problem, but in the event that there is no advertisement, the template remains. I want it to disappear and appear only when an advertisement is available enter image description here NativeAdView template Answer control

BottomSheetDialogFragment behaviour disorder when added nested fragment in Android

I’ve a BottomSheetDialogFragment inside a RecyclerView, when is clicked a button BottomSheet is showing. BottomSheetDialog expanding when scrolling down and collapsing when scroll finished on top normally. But when I place the RecyclerView inside a fragment and lay the fragment to BottomSheetDialog; BottomSheet behaviours not working on the fragment, only works RecyclerView scrolling. On the other hand the behaviours work

Allow notifications Android webview

Context I’m trying to add push notifications that come from my website. My code: MainActivity.java AndroidManifest.xml activity_main.xml Problem I tried code from this post but it did not help. However, I think that I should allow notifications somewhere. I tried to open my website in a browser and it actually asks the permission while my app does not. (left: browser,

Advertisement