I want to give ID to some views (textview ,imageview etc) in a layout that is programmetically created.
So what is the best way to set ID.
I want to give ID to some views (textview ,imageview etc) in a layout
Share
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.
You create an ids.xml file and place all your required ids in it as below
Now for your dynamically created layouts or views you can use these ids as below
I hope it may help you.