Adding a Linear Layout in XML dynamically to another Linear Layout

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 …

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 …

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 …

Android floating view (over other views)

I’ve been messing around with this for a few days now, hopefully someone here can lend me a hand. I have a simple two-column layout, the left side is a navigation bar with buttons, the right side is …