I am making an Android application in which every member has up to 5 children, thus I need to show children dynamically. However, I can’t apply conditions on XML layouts.
Any suggestions would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On your xml code you can make your layouts
to have them not showing and in you mainActivity (java code) you make them show up using
I normally make my layouts to have other layouts horizontally or vertically with buttons textviews etc. (child fields) show or disappear at a button click event.