Is there a better way to achieve click effect on ShapeableImageView with recent release of Material components v1.2.0 I do not want to use foreground property a
I'm having this weird issue when using MaterialDatePicker. While it works, the title and current date are not displaying as they should. Any ideas on what is ha
I have a ScrollView inside my Constrained layout which contains another constrained layout, the view does not show its content if I set its height to "Match-Con
I want to set the top padding of a textview programmatically. I know you can do this with the method setPadding(). But the problem is that this method requires
I am trying to set the width and height of a view in code to show an ad for a free app I am working on. All of the UI is done in XML with the exception of this
I have implemented CardView in my app and everything works fine except there is a little padding around the image if I put radius to the card. It appears like
I have a TabLayout, where I want the tabs to be displayed in the center of the screen. Below is the XML for my TabLayout. <android.support.design.widget.Tab
I have a state list drawable, and i want to get a specific drawable from the state list drawable: <?xml version="1.0" encoding="utf-8"?> <selector xml
I am developing Android v2.2 app. I have a Fragment. In the onCreateView(...) callback of my fragment class, I inflate an layout to the fragment like below: @Ov
I've been doing a bit of searching around for ways to achieve what i'm after but haven't been able to find much. Basically i'm going to use this as a "home" sc
I want the icons to be centrally placed on the screen with proper alignment. What are the parameters I need to set? I have tried android:gravity and android:lay
Why does FOOBARZ get layed out all the way at the bottom when no elements are layout_height="fill_parent" in other words, all elements are wrap_content for heig
I have a layout with a background image. The image width should be the same as the screen width (match_parent). But it's ugly, the OS don't stretch the picture
I just started android development, so I have two question in my mind First, why the size of edit field does not change its width. Secondly, what is the meani
I am editing to make the question simpler, hoping that helps towards an accurate answer. Say I have the following oval shape: <?xml version="1.0" encoding=
I want to add a custom height to the dropdown of a Spinner, say 30dp, and I want to hide the dividers of the dropdown list of Spinner. So far I tried to implem