Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question I cannot access the elements in my XML form the main activity, writing
Tag: android-layout
Why is the RecyclerView inflating over the ToolBar?
I’m having an issue with my app when I inflate an recyclerview. Inside the recyclerview, some cards are inflated and when it comes out to the screen, the toolbar disappears and the settings button can’t be used. Using the latest SDK and libraries versions. activity_main.xml: linha.xml -> here I get the cardview which I use to show the items on
Use String Resource in layout xml along with Java
I have one button view in my layout.xml like below
Why is the content of CardView inside a RecyclerView (in my case) changing when I scroll?
I have the same question like this post “Cardview’s data are changed while scrolling RecyclerView”. But taking out the statics isn’t working. Context of what I am doing: I am adding a couple of buttons inside a FlexboxLayout and again inside a CardView (CardView inside a RecyclerView). Buttons are being added dynamically. The same thing happens with a couple of
Dynamically add chips to chipgroup
I’m trying to add several chips to the chip group dynamically. The first one appears fine but others do not appear properly. But when I do it using XML it works fine. activity_main.xml In MainActivity.java style.xml standalone_chip.xml Answer In your main activity you are doing like this. Notice you are creating a new instance of chip i.e chip2 but you
How to resolve problem of inflateException when I include a layout?
I design a new form name (form_info.xml) to get some information from user then I tried to include the form to activity_main.xml but unfortunately app crashed and I got inflateExcdeption but I don’t know how to handle it. Also when I add my new form by means of setContentView (R.layout.form_info) I got same error. There is activity_main.xml: And below is
IllegalArgumentException When trying to use @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox
I am trying to stylize the TextInputLayout with an outline. But when I try to use @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox in style attribute my app crashes with this exception: Here is the TextInputLayout theme I want to use OutlinedBox It was working fine but suddenly this error appeared during development Global App Theme Answer As reported in the error: Caused by: java.lang.IllegalArgumentException: The
Transparent EditText Android Studio
I am trying to make my EditText in my android studio project transparent. I want it to look like the EditText here But mine doesn’t look like that even though I have tried using transparent and ffffff can someone please help me with this ? I want my edit text background to look like the one in the image I
WebView scroll up automatically when scrolling it down little
In web view when I scroll the page little bit down then it scroll up automatically on some pages not all pages but on some pages.Why this happen and what is it solution Here is xml code Here is my code you can check this Here is my java code I set the cookie also to web view and I
Unconditional layout inflation from view adapter warning
I am using GridView in my alert dialogue with below codes.its giving me error called in title. My codes and more required information is like below. and Adapter like this its giving me warning on this line warning is like below My code is working fine as expected and I am not facing any issue. I want know that What