This week's giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line! See this thread for details.
I cannot link the card view layout with an adapter even tho I followed the general format of context, layout, and array.
The error is on line 27 a red line under r.layout.item_list_view and it says the required is activity and that I gave it an int.
I have no idea why it thinks I gave it an int..
R is a class created by the IDE as a place to hold the constants it creates. Here is the path to R.java for one of my projects:
If you look in R.java there will be an inner class nameed layout and inside of that item_list_view will be defined as an int.
The RecipeAdapter class's constructor takes a reference to an Activity as its second argument. Would the class holding the above statement be the desired Activity? Then this would refer to that Activity.
Actually, I believe that R is created by the Android build process, so even if you aren't using an IDE it should be constructed.
Also, interestingly, the latest Android Studio doesn't seem to want me to explicitly reference R anymore.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Those are the largest trousers in the world! Especially when next to this ad:
SKIP - a book about connecting industrious people with elderly land owners