Basically i created a seperate xml containing a linear layout which contains a image and a textview, and i need this linear layout inside of another linear layout, where i need to add my first linear …
Tag: android-layout
How do I only allow the user to enter sensible height and weight values in Edit Text? Java
I’m making a super simple BMI calculator app using Java in android studio but I’d like to make it so that the user is only able to enter sensible values for their height and weight. I was thinking …
Can’t Access XML form Main Activity in Android Studio [closed]
I cannot access the elements in my XML form the main activity, writing the element id throws errors as if the element is not even there. Basically Main can’t see what is written in XML file, even …
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 …
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 …
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
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
Text not showing up on android, but does show in preview in android studio
I am trying to build my first Android app using Android Studio and Firebase. I have it all connected and it is showing the content from the database and images from the firebase storage just fine. The problem is, for some reason my text isn’t showing up that I added into the xml. At the bottom of the post there