I cant find how to add the images in grid view statically. i.e Directly in layout.xml.
By searching all I found that we can add image view dynamically in java and not directly in xml.
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.
Using a GridView, you need to write a Adapter (Its named BasicAdapter,ArrayAdapter,Listadapter and so on). Each Adapter have a function named “getView(View view, View parent, args)”, simply
Override it and return the View you want to have in your GridView.