Ok so I am trying change my background of my dialog box from white to a dark blue. However when I long press on one of the grid elements the dialog box looks like this: I am trying to make it look something like this (this is a photoshop): Here is snipet of my XML code for the edit dialog
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
Where does one add a functionality in the MainActivity.java file for android?
I am currently learning Android Development and am confused about where to add certain functionality in the MainActivity.java file. Some context: I am designing a basic coffee app in Android using Java. I have added a checkbox for toppings in the XML file. When I click the order button on my app, I should be able to see this Whipped
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
Using one Google Maps Activity, call a method using three different buttons
I have an android application in which I have 3 buttons and by pressing them I want to call three different Google maps markers, by using the same google maps activity. CLASS WITH 3 DIFFERENT BUTTONS and then my GOOGLE MAPS ACTIVITY CODE This is what I’ve done so far, but I can’t find a way to use the same
CoordinatorLayout with NestedScrollView adding padding bottom for sticky button not working
I have this scenario : I’ve created this Then here’s my layout Then I’m doing the collapsing animation as : It works flawless, the problem is now that I want to add a sticky button but I can not tell to NestedScrollView to be aligned bottomToTopOf my button because it’s not inside a ConstraintLayout neither it’s a child of it,
Main Adapter Cannot be Applied to Java List
(list , this)<= this Line Creates Problem. This is my Main Acitivty Code Main Adapter Code This one is Main Model Answer Here, In your code, you are missing a constructor as mentioned by @Sergey as well as you are passing the wrong context in onCreateViewHolder().You should pass parent.getContext();
Problem with positioning FloatingActionButton in Fragment
I have problem with positioning FAB inside Fragment. FAB is on the top left, but I need it on the bottom right. What I have wrong? Answer as I have read , FAB doesn’t work with relative layout very well and you should use Coordinator Layout instead. first include its dependency in build.gradle(Module:app) then declare Coordinator Layout like this instead
In Android Studio, text does not appear on top of an image
I’m doing a small project on Android Studio, and I’ve put a picture as a dark blue background. I inserted white text on top of this dark blue figure, but the white color in the letters still doesn’t show. The Graphical Interface. See that I put the color white, but it still doesn’t show up. Please, check out: Please, can
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,